Refactor lobby game logic

added a get_games_in_state() method to Game