hooked up game to ajax request to the game API