added the basis for the game with ajax