Moved updateVelocity() and updatePosition to the Main class since they are not part of drawing.