added ajax to game and main