create call back after end of the game