Added ajax to game