Changed position and velocity to vectors