             [ring.middleware.session :refer [wrap-session]]
             [clojure.pprint]))
 
-(def state (atom :voting #_:not-started))
+(def state (atom :not-started))
 (def team-counter (atom 1))
 (def teams (atom {999 "Team 9's idea"}))
 (def votes (atom {998 1, 999 3}))

  "Vote for a gamification idea"
  (page
   "Vote"
   [:h1 "The best gamification idea is:"]          ; TODO
   [:form {:action "/vote", :method "post"}
    (map
     (fn [[id idea]] [:p

  (GET "/vote-results" [] (page-vote-results))
  (GET "/projector" []
       "TODO: Stuff showing on the projector: 1. the task; 2. /teams; 3. /vote-results")
  (context "/command" [] ; GameMaster posts commands here (TODO? check it really is gm)
           (POST "/show-task" [] "TODO")
           #_(POST "/start-brainstorming" [] (str (compare-and-set! state :oldstate :newstate))) ;; CURRENTLY NOT NEEDED
           (POST "/start-voting" [] (str (compare-and-set! state :brainstorming :voting)))
           (POST "/show-voting-results" [] (str (compare-and-set! state :voting :voting-finished))))
  (route/resources "/")
  (route/not-found "Not Found"))

