updates the code to include a controller for the initializeUI and gameAI methods