public float addWeight(int numberSum, int numberDirection) {
		switch (numberDirection) {
		case 1:
			if (numberSum >= 4)
				return 15;
			else
				return (float) 15 / (4 - 1) * numberSum - (float) 15 / (4 - 1);
		case 2:
			if (numberSum >= 7)
				return 15;
			else
				return (float) 15 / (7 - 1) * numberSum - (float) 15 / (7 - 1);
		case 3:
			if (numberSum >= 12)
				return 15;
			else
				return (float) 15 / (12 - 1) * numberSum - (float) 15
						/ (12 - 1);
		case 4:
			if (numberSum >= 16)
				return 15;
			else
				return (float) 15 / (16 - 1) * numberSum - (float) 15
						/ (16 - 1);
		default:
			return 0;
		}
	}