Implement velocity and acceleration

Modifying the velocity and acceleration vectors will now affect the
horizontal movement.