public static int calulateFaceDistance(int x1, int y1, int x2, int y2, int face) {
		switch (face) {
		case 0:
			return calulateUpDistance(x1, y1, x2, y2);
		case 1:
			return calulateRightDistance(x1, y1, x2, y2);
		case 2:
			return calulateDownDistance(x1, y1, x2, y2);
		case 3:
			return calulateLeftDistance(x1, y1, x2, y2);
		}
		return 0;
	}