 
 
 (defn home-page []
-  [:div [:h2 "Welcome to passa-paraula"]
+  [:div 
+   [:h2 "Welcome to passa-paraula"]
+   [:div {:id "score"} (str "score:" (:score @app-state))]
    [board-component]
    [:div [:a {:href "#/about"} "go to about page"]]])
 

(def highlight-letter-width "5")


(defn init-status []
  (vec (take num-letters (repeat :init))))

(def app-state (atom {:pos 0
                      :status (init-status)}))


(defn init-state! []
  (reset! app-state {:pos 0
                     :status (vec (take num-letters (repeat :init)))}))


;; -------------------------


(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 []
