Ship movement logic