public void addStates(ArrayList<State> newStates) {
		if (this.states == null) {
			this.states = new ArrayList<State>();
		}
		this.states.addAll(newStates);
		for (State newState : newStates) {
			newState.setApplet(this);
		}
	}