Okay, i shall now explain the system i have used more clearly. Because of the simple nature of this i use two components to represent to motion on the 2D coordinate system, these are hspeed for horizontal speed and vspeed for vertical speed. In the beginning of the program i have hspeed on the value of 0.7 so that the craft will have its motion to keep it on the orbit. Every step of the program i calculate the gravitational force and calculate its components and just simply add the components of the hspeed and vspeed variable. Using these hspeed and vspeed variables i move the spaceship every step. This is the code i use to calculate the gravitational force: grav=((Gcon*Mse*(5.9*10^24))/(distance_to_point(earth.x,earth.y)*50)^2) Gcon is the gravitational constant and Mse is the mass of the craft.