update method for ships movement