game ajax logic completed