Adding rotation logic for the ship