   (reify
     om/IRenderState
     (render-state [this {:keys [move]}]
-      (println cursor)
-      (dom/div #js {:className "red-team"}))))
+      (dom/div #js {:onClick #(highlight-tile %) :className "red-team"}))))
 
 (defn opponent-view [cursor owner]
   (reify
     om/IRender
     (render [_]
       (dom/div #js {:className "blue-team"}))))
-
-(defn handle-move [e position]
-  (put! (:move position) position))
 
 (defn tile-view [cursor owner]
   (reify


(def board-size (range 0 9))
(def bench-size 4)
(def opponent-image "images/front-noball.gif")
(def player-image "images/back-noball.gif")
(def ball-image "images/ball.gif")

(defn border-top [y]
  (cond

                 (= (:y position) (:y %)))
               (:cells (om/root-cursor app-state)))))

(defn highlight-tile [e]
 (set! (.. e -target -style -background) "gray"))

(defn update-piece-position [e state]
  (om/transact! (om/root-cursor app-state) :cells #(conj {:type :my-team :x 1 :y 8})))
