Better animation loop logic. Removed unncessary modal when you dont have a ship.