Adds ship movement and acceleration function.