 (defonce app-state (atom {:text "hello world"}))
 
 ;; (defn contacts-view [data owner]
-;;   (reify
-;;     om/IInitState
-;;     (init-state [_]
-;;       {:vect [[1 1 1]
+;;    (reify
+;;      om/IInitState
+;;      (init-state [_]
+;;        {:vect [[1 1 1]
 ;;               [1 1 1]
-;;               [2 3 4]]})
-;;     om/IRenderState
-;;     (render-state [_ state]
-;;                   (apply dom/div nil
-;;                          (for [row (:vect state)]
-;;                            (dom/p nil (str row)))))))
+;;                [2 3 4]]})
+;;      om/IRenderState
+;;      (render-state [_ state]
+;;                    (apply dom/div nil
+;;                           (for [row (:vect state)]
+;;                             (dom/p nil (str row)))))))
 
 ;; (defn foo [data owner]
-;;   (reify
-;;     om/IRender
-;;     (render [this]
-;;             (dom/div nil
-;;               (dom/p nil "yo")))))
+;;    (reify
+;;      om/IRender
+;;      (render [this]
+;;              (dom/div nil
+;;                (dom/p nil "yo")))))
 
 (defn x-cord
   [pair]

                             {:state {:pawn (if (= x 1) true)}
                              :opts {:pos [x y]}}))))))))

(defn main []
  (om/root
    (fn [app owner]

        (render [_]
                (dom/div nil
                         (dom/p nil(:text app))
                         (om/build chess-board nil)
                         (dom/button #js {:onClick #(start-game)}
                                     "Start Game")))))
    app-state
    {:target (. js/document (getElementById "app"))}))
 
