public static int convertDirY(DirectionY diry) {
		int r;
		switch (diry) {
		case DOWN:
			r = 1;
			break;
		case NOTHING:
			r = 0;
			break;
		case UP:
			r = -1;
			break;
		default:
			r = 0;
			break;		
		}
		return r;
	}