public void warn(Event event) {
		String c = "";
		switch(event.getTypeEvent())
		{
		case WHITE_DETECTED :
			c = "White";
		case COLOR_DETECTED :
			if(event.getName().equals(color) || c.equals(color)) {
				if(state == 3) {
					state = 4;
				}
				else ignore();
			}
			else
				ignore();
			break;
		case GOFORWARD_END :
			if(state == 3) {
				state = 5;
			}
			else
				ignore();
			break;
		case ROTATE_END :
			if(state == 0) {
				state = 1;
			}
			else
				ignore();
			break;
		default:
			ignore();
			break;
		}
	}