The while loop has too loop while
the x and y coordinates doesn't match start_x , start_y.
When i use this
while(x != start_x && y != start_y)
and lets say that start_x = 0, and start_y= 0
The while loop will terminate when x = 0 , and y = has some random value.
I want it to terminate when x=start_x and y = start_y.