public void setState(int newState) {
		if(state != null) state.dispose();
		if(newState == SPLASH) {
			state = new PlayState(this);
		}
		if(newState == TITLE) {
			state = new TitleState(this);
		}
		if(newState == PLAY) {
			state = new PlayState(this);
		}
	}