Implementation of CreateGame, GetGames and GetGame.