             [reagent.core :as reagent :refer [atom]]
             [reagent.session :as session]
             [clojure.walk :as walk]
+            [clojure.set :refer [difference]]
             [cognitect.transit :as t]
             [secretary.core :as secretary :include-macros true]
             [goog.events :as events]

    [:li [:a {:href "#/standings"} "Standings"]]]])

(defn new-game-page []
  [:div
   [:a {:href "#"} "Home"]
   [:div [:h2 "New game"]
    [:a {:href "#/new-player"} "New player"]
    [:h3 "List of players"]
    (list-players)
    ]])

(defn redirect-to [path]
  (set! js/window.location.href path))

               :matches []}))

(defonce players (atom nil))
(def selected-players (atom #{}))

(defn add-new-player [name]
  (swap! db #(update-in % [:players] conj {:name name})))
