                  :history []}))
 
 ; required for pausing/resuming the gravity routine
-(def pause-grav (chan))
-(def resume-grav (chan))
+(def stop-grav (chan))
 
 (def battle
   "Boolean flag signaling whether we are in solo or battle mode."

        (let [[value c] (alts! [(:quit-chan @state) uc])]
          (when (= c uc)
            (swap! state assoc :soft-drop value)

            ; force gravity to reset
            (put! pause-grav 0)
            (put! resume-grav 0)
            (recur)))))

    ; Remove key events when quitting

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

  (display-points!)
  (try-publish-score!)
