api call to determine if a game is over