 
 
 (defn init! []
-  (init-state!)
+  (reset-state!)
   (hook-browser-navigation!)
   (hook-keyboard-listener)
   (mount-root))

  (every? #(or (= :failed %) (= :ok %)) (:status @app-state)))

(defn end-game []
  (init-state!)
  (secretary/dispatch! "/end")) 

(defn handle-letter [letter-id status]
  (do
    (change-letter-status letter-id status)
    (jump-next-letter)
    (if (end-game?)
      (end-game)


(defn end-page []
  [:div [:h2 "The End"]
   [:div (str "score:" (:score @app-state))]
   [:div [:a {:href "#/about"} "go to the home page"]]])

(defn current-page []
