   (atom {}))
 
 (defn rank-players
-  "Get players for the given game sorted by rank for the given mode."
-  [game-id mode]
+  "Get players for the given game sorted by rank."
+  [game-id]
   (->> (vals @players)
        (filter #(= game-id (:game %)))
        (sort-by :score)
-       (reverse)))
+       reverse))
 
 (defn go-go-countdown!
   "Start the countdown"

  (reset! game-mode mode)

  ; Update the game count to uniquely identify current game.
  (swap! game-count inc)

  ; Log the game start.
  (util/tlog "Starting the game: " (name mode) " " @game-count)

  ; Make lobby players navigate to a countdown screen.
  (.. io (to "lobby") (emit "start-game"))


(declare go-go-next-game-countdown!)

(def current-round-id
  "Number of games started since server started (used to identify games)"
  (atom 0))

