# How to Find the Next Moves of Cars From Given First Moves?

I want to find next moves of cars from the previous moves, but I could not figure out what should I use as algorithm. Can you help me to find a way to solve this problem?

I have a lot of car data like below:

The data format is simple. Each car has a data file which includes all moves which are performed in one seccond. The green box shows the starting point and the blue box shows the end point of the movements.

To be more clearer I can explain the Car1 data file content like this:

seccond, y, x
1        6  0
2        6  1
3        6  2
4        5  2
5        4  2
6        3  2
7        3  3
8        3  4
9        3  5
10       3  6


So what should I do to train a model with all these data and to find a result like below: green box shows the starting point, the red line shows the data which I have as test, the yellow line shows the data which I want to find as a result.