   "Plays a game"
   [ev]
   (let [actions (or (state/get-state :current-actions) [])
-        game (state/get-state :original-game-data)
+        game (state/get-state :raw-game-data)
         player-code (get-in game ["viewed-by" "player-code"])
         token (state/get-state :token)
         game-id (state/get-state :game-id)

  []
  (state/set-state :processing-action nil))

(defn- game-deployed
  "After the game was deployed"
  [data]
  (game-played data))

(defn- game-played
  "After the game was deployed"
  [data]
  (state/set-state :game-data data)
  (state/set-state :original-game-data data)
  (state/set-state :current-actions nil)
  (state/set-state :processing-action nil))

(defn- deploy-game
  "Deploys a game"

  "Checks if the play button should be disabled"
  [state]
  (let [player-code (get-in state [:game-data "viewed-by" "player-code"])]
    (cond
      (state :processing-action) "disabled"
      (not= player-code (get-in state [:original-game-data "board" "state"])) "disabled"
