                             #js {:onClick (partial toggle-play-state app)}
                             (if (:playing? app) "stop" "play"))
                           (dom/button
-                            #js {:onClick #(reset-random!)}
+                            #js {:onClick #(reset-random! app)}
                             "random"))
                  (apply dom/svg #js {:height (* height cell-size) 
                                      :width (* width cell-size)

                        (cell-els width height cell-size cells)))))))

(defn draw!
  [app-state]
  (om/root world
           app-state
           {:target (. js/document (getElementById "app"))}))


(defn main []
  (draw! app-state)
  (live! app-state))

                                 :stroke "#ccccce"
                                 :stroke-width "0.5"}}))))

(defn world
  "Om component for the world."
  [app owner]
  (reify
    om/IRender
