public void setCurrentState(final String name) {
		for (final IGameState state : states) {
			if (name.equals(state.getName())) {
				if (currentState != null) {
					currentState.stop();
				}
				state.start();
				currentState = state;
				return;
			}
		}
		System.err.println("State not found : " + name);
	}