moved Matheus's basic AI into the game