 (ns client.core
-  (:require-macros [cljs.core.async.macros :refer [go]])
+  (:require-macros
+    [cljs.core.async.macros :refer [go alt!]])
   (:require
     [client.board :refer [piece-fits?
                           cell-filled?

  (size-canvas!)
  (try-spawn-piece!)
  (add-key-events)
  (go-go-gravity!)
  (go-go-draw!)

  (repl/connect)
  (connect-socket!)


                  :score 0}))

; required for pausing/resuming the gravity routine
(def pause-grav (chan))
(def resume-grav (chan))

;;------------------------------------------------------------
;; STATE MONITOR
;;------------------------------------------------------------
