put code in gameHandler