 ;; Alert of proximity when the game is started
 (.setInterval js/window 
               (fn []
-                (.log js/console "Test Interval")
-                (alert-beer-groping-hand)
+                (when (-> @state :start-game?)
+                  (alert-beer-groping-hand))
                 ) 500)

          ty (- mouse-y beer-y)
          mag (Math/sqrt (+ (* tx tx) (* ty ty)))
          ]
      (swap! state assoc :beer-proximity mag)
      )))


;;

;; Start Game Event
(let [dom-start-button (.querySelector js/document "#beer-start-dialog")]
  (.addEventListener dom-start-button "click" start-game))

