     (let [{type "type" password "password"} body]
       (case type
         0 (generate-string
-                  (mc/insert-and-return db coll {:token (generate) :type type :field empty-field :state :first-player-turn}))
+            (mc/insert-and-return db coll {:token (generate) :type type :field1 empty-field :field2 empty-field :state :first-player-turn}))
         1 "shared key"
         "asd Bad request")))
 

  [error]
  (case error
    :wrong-turn (generate-string {:error "wrong turn"})
    :invalid-state (generate-string {:error "invalid state"})
    :not-found (generate-string {:error "resource not found"})
    (generate-string {:error "unknown error"})))


(cheshire.generate/add-encoder org.bson.types.ObjectId cheshire.generate/encode-str)

(def empty-field 0)

(defn generate
  "generates a unique token for the game"
