retrieving game id for ajax call