public static int getRow(int selection) {
		int row = 0;
		// Calculates grid coordinate
		if (selection == 1 || selection == 2 || selection == 3) {
			row = 0;
		}
		if (selection == 4 || selection == 5 || selection == 6) {
			row = 1;
		}
		if (selection == 7 || selection == 8 || selection == 9) {
			row = 2;
		}
		return row;
	}