public static function selectLocationListForGame(
        $gameState,
        $gameKey
    ) {
        $gameState = (object) $gameState;
        $gameKey = (string) $gameKey;

        $locationList = [];
        foreach ($gameState->game->$gameKey->location as $locationKey => $hasLocation) {
            if (!$hasLocation) {
                continue;
            }

            $locationItem = $gameState->location->$locationKey;
            $locationList[$locationKey] = $locationItem;
        }

        return $locationList;
    }