Greatly improved ship movement logic.