Added rest API for games.
Rest api for games.