improved GameEngine and AI