 ;; 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)

    (reset! current-hidden-beer beer-element)
    ))

(defonce game-started? (atom false))
(defn start-game []
  (reset! game-started? true)
  (inc-beer-count!)
  (generate-hidden-beer)
  (play-sound :proximity-sound-0)

;;

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

