added ajax to game