                         (get-name :blue) (conj {:name (get-name :blue) :color :blue})
                         (get-name :green) (conj {:name (get-name :green) :color :green})
                         (get-name :orange) (conj {:name (get-name :orange) :color :orange})
-                        (get-name :red) (conj {:name (get-name :red) :color :red})
-                        )]
+                        (get-name :red) (conj {:name (get-name :red) :color :red}))]
   (reset! app-state (dissoc @app-state :select-players))
+  (swap! names empty-names)
   (ajax/POST "http://localhost:3000/new-game"
-             {:params {:players players}
+             {:params {:players (shuffle players)}
               :handler on-new-game
               :error-handler on-error})))
 

  (.log js/console (str "ERROR [" status "] " status-text)))

(defn on-new-game [response]
  (println "on-new-game" response)
  (reset! app-state response))

(defn new-game! []

(enable-console-print!)

(defonce app-state (atom nil))
(def empty-names {:black nil :blue nil :green nil :orange nil :red nil})
(defonce names (atom empty-names))

(defn set-name! [color name]
  (swap! names assoc color name))
