 ;;
 
 (defn createjsstartgame []
-  (repl/connect "http://localhost:9000/repl")
+  #_(repl/connect "http://localhost:9000/repl")
   (renderer/initializerenderer "target")
   
   ;; the preloader loads all the assets and then calls startgame

    (reduce world/put-character gamestate characters)))

(defn makestartingstate []
  (let [gamemap (world/makestartingmap {:width 10 :height 10})
        emptygamestate (world/makeemptygamestate)]
    (-> emptygamestate
        (assoc :map gamemap)

(defn makestartingcharacters []
  [
   (world/create-character
    {:charactername "Angry Red Monster" :id 1 :iconindex 128 :coords [5 4] :team :team2 :starthealth 2 
     :actions [(action/createmoveaction "waddle" 1 1) (action/createmajoraction "bite" 1 1 1) 
               (action/createmajoraction "flame" 1 1 2)]})
   (world/create-character
    {:charactername "Gold Demon" :id 2 :iconindex 131 :coords [7 4] :team :team2 :starthealth 3 
     :actions [(action/createmoveaction "crawl" 1 1) (action/createmajoraction "spew" 1 1 1)]})
   (world/create-character
    {:charactername "Orange Golem" :id 3 :iconindex 129 :coords [5 6] :team :team2 :starthealth 5 
     :actions [(action/createmoveaction "stomp" 1 1) (action/createmajoraction "punch" 1 1 1)]})
   
   (world/create-character
    {:charactername "Knight" :id 4 :iconindex 160 :coords [3 3] :team :team1 :starthealth 5 
     :actions [(action/createmoveaction "walk" 1 1) (action/createmajoraction "sword" 1 1 1)]})
   (world/create-character
    {:charactername "Guy with Gun" :id 5 :iconindex 191 :coords [2 4] :team :team1 :starthealth 2 
     :actions [(action/createmoveaction "walk" 26 1) (action/createmajoraction "shoot" 1 3 1)]})
   (world/create-character
    {:charactername "A Wizard Did It" :id 6 :iconindex 162 :coords [3 5] :team :team1 :starthealth 2 
     :actions [(action/createmoveaction "walk" 1 1) (action/createmajoraction "lightning" 1 1 1)]})
   ])

(defn addstartingcharacters [gamestate]
