Integrated Ai class into game