minor refactoring of ship.move