     (.image loader "possible-grid" "assets/gray-grid.png")
     (.image loader "restart-button" "assets/restart-button.png")))
 
-
 ;; (defn update [game]
 ;;   )
 
-
-(def ^export game (js/Phaser.Game. 905 605 js/Phaser.AUTO "game_div"))
-
-(defn ^export start []
+(defn ^export start [game]
   (.add (.-state game) "main"
         (clj->js {:preload preload
                   :create create

(def *border* (atom rcore/*default-border*))
(def *phaser-border* (atom [[] [] [] [] [] [] [] []]))
(def *visible-possible-grids-pos* (atom '()))
(def ^:dynamic *default-player-use-piece* rcore/*black-piece*)
(def ^:dynamic *default-pc-use-piece* rcore/*white-piece*)


                  }))
  (.start (.-state game) "main"))

(start *game*)
