 (def playing (r/atom nil))
 ;; current time
 (def time-tick (r/atom 0))
+
+
+(defn set-tick[]
+  (reset! time-tick (.getTime (js/Date.))))
 
 ;; game status
 (def game-state 



(defn first-click [game x y]
  (reset! time-tick (quot (.getTime (js/Date.)) 1000))
  (if (= 1 (get-in game [:board x y]) )
    (swap-cell game [x y] (find-space game))
    game))


(defn new-game! [difficulty]
  (stop-sound)
  (reset! time-tick 0)
  (reset! game-state (apply init-game (difficulties difficulty))))

(defn print-game [game]
