finished updating MultithreadedAI.java