   def current_game_response(region, summoner_id) do
     current_game = Viktor.current_game(region, summoner_id)
     case current_game do
-      %{"status" => %{"status_code" => 404}} ->
+      %{"status" => %{"status_code" => _}} ->
         %{
-          "currentGamesMap" => %{Integer.to_string(summoner_id) => -1},
+          "currentGamesMap" => %{to_integer(summoner_id) => -1},
           "currentGames" => %{}
         }
       _ ->

  end

  def recent_games_data(region, summoner_id) do
    %{"recentGamesData" => %{ summoner_id => Viktor.recent_games(region, summoner_id)["games"] }}
  end

  def ranked_response(region, summoner_id) do
    ranked_stats_response = Viktor.ranked_stats(region, summoner_id)

    case ranked_stats_response do
          %{"status" => %{"status_code" => 404}} ->
            %{
              "aggregateRankedStatsData" => %{ summoner_id => %{} },
              "rankedStatsData" => %{ summoner_id => [] }

        }
    end
  end

  def to_integer(summoner_id) when is_integer(summoner_id) do
    to_integer(Integer.to_string(summoner_id))
  end

    def to_integer(summoner_id) when is_binary(summoner_id) do
      summoner_id
    end

  def summoner_profile(region, summoner) do
    current_game = Viktor.current_game(region, summoner["id"])
