 (def music-playing?
   "Boolean flag signaling if the music is playing or not"
   (atom false))
+
+;;------------------------------------------------------------
+;; STATE MONITOR
+;;------------------------------------------------------------
 
 (defn- on-music-playing-change [_ _ _ new-state]
   (let [music-el (.getElementById js/document "music")]

  (.html ($ "#score") (str "Score: " (util/format-number (:score @state))))
  (.html ($ "#level") (str "Level: " (:level @state)))
  (.html ($ "#lines") (str "Lines: " (:total-lines @state))))

(defn update-points!
  [rows-cleared]

      (.html ($ "#theme-details") (:platform theme)))))

(add-watch state :theme-change update-theme)

(defn make-redraw-chan
  "Create a channel that receives a value everytime a redraw is requested."
