public static void rowHandler(double[][] matrix) {
		//loops through each row to determine the value of the row
		for(int i = 0; i < matrix[0].length; i++) {
			//ternary to output the value for use in the output string
			String row_output = (rowChecker(matrix, i) == 0 || rowChecker(matrix, i) == 3) ? 
			    Integer.toString(rowChecker(matrix, i) / 3): "";
			//displays appropriate message for each condition    
			if(row_output.equals("0")) 
				System.out.println("Row " + (i + 1) + " contains all " +
			        row_output + "\'s");
			else if(row_output.equals("1")) 
				System.out.println("Row " + (i + 1) +  " contains all " +
				        row_output + "\'s");
		}
	}