private void loadState(int state) {
		if(state == MENUSTATE)
			gameStates[state] = new MenuState(this);
		if(state == LEVEL1STATE)
			try {
				gameStates[state] = new Level1State(this);
			} catch (IOException e) {
				e.printStackTrace();
			}
		if(state == MPSTATE){
			try {
				gameStates[state] = new MPState(this);
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		}