ajax for the game