Refactor int coords to float and executeAI() to updateObject()