"use strict";

var LocalStorageUtils = require("./utils/LocalStorageUtils");
var StateIds = require("./states/States");

var InitializeState = require("./states/InitializeState");
var MenuState = require("./states/MenuState");
var SettingsState = require("./states/SettingsState");
var LoadingState = require("./states/LoadingState");
var GameState = require("./states/GameState")

var game = new Phaser.Game(window.innerWidth, window.innerHeight, Phaser.CANVAS, 'phaser-example');

window.Game = game;
window.onresize = function() {
  Game.scale.setGameSize(window.innerWidth, window.innerHeight);
}

game.state.add(StateIds.INITIALIZE_STATE_ID, new InitializeState(game), true);
game.state.add(StateIds.MENU_STATE_ID, new MenuState(game));
game.state.add(StateIds.SETTINGS_STATE_ID, new SettingsState(game));
game.state.add(StateIds.LOADING_STATE_ID, new LoadingState(game));
game.state.add(StateIds.LOADING_STATE_ID, new GameState(game));
@@ -887,39 +887,36 @@
 te.add(StateIds.
-LOADING
+GAME
 _STATE_ID, new G

Fix passed id of state add