Added parameter objects to update method
AI Logic