# How to predict the possible next moves of cars from given first moves?

I want to find the next moves of cars from the previous moves, but I could not figure out what should I use as an 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 second. The green box shows the starting point and the blue box shows the end point of the movements.

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

second, 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.