public static int getYfromString(String location) {
		if ((location.charAt(1) == '1')) {
			return 0;
		}
		if ((location.charAt(1) == '2')) {
			return 1;
		}
		if ((location.charAt(1) == '3')) {
			return 2;
		}
		if ((location.charAt(1) == '4')) {
			return 3;
		}
		if ((location.charAt(1) == '5')) {
			return 4;
		}
		if ((location.charAt(1) == '6')) {
			return 5;
		}
		if ((location.charAt(1) == '7')) {
			return 6;
		}
		if ((location.charAt(1) == '8')) {
			return 7;
		}
		return -1;
	}