public boolean transitionState(int state) {
		if(mental_state == -1 && state == 0) {
			mental_state = state;
			return true;
		} else if(mental_state == 0 && state == 1) {
			mental_state = state;
			return true;
		} else if(mental_state == 1 && state == 2) {
			mental_state = state;
			return true;
		} else if(mental_state == 2 && state == 3) {
			mental_state = state;
			return true;
		} else if(mental_state == 3 && state == 4) {
			mental_state = state;
			return true;
		} else if(mental_state == 4 && state == 0) {
			mental_state = state;
			return true;
		} 
		//Should it be possible to reset back to the initial state?
		else if(mental_state == 4 && state == -1) {
			mental_state = state;
			return true;
		}
		
		return false;
	}