 (enable-console-print!)
 
 (defonce app-state (atom nil))
-(defonce names (atom {:black nil :blue nil :green nil :orange nil :red 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))

                        (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})
                        )]
  (reset! app-state (dissoc @app-state :select-players))
  (ajax/POST "http://localhost:3000/new-game"
             {:params {:players players}
              :handler on-new-game
              :error-handler on-error})))


   ;; transition 3
   {:x 450 :y 210}
   ;; ship
   {:x 400 :y 240}])

;; TODO: duplicated from server code
(defn active-player
