Code to ListOfGames and transitions