Refactoring setBoatAI to updateBoatAI