added function for getting game details by game id