public void writeToFile(){
		for(int row = 0; row < 4; row++) {
	      	for(int col = 0; col < 4; col++) {
	         	
	         	try {
	         		// System.out.println(String.format("%h", this.state[row][col]));
	         		String hex = String.format("%h", this.state[row][col]);
	         		if (hex.length() < 2) {
	         			hex = "0" + hex;
	         		}
	   				this.edWriter.write(hex);
	   				System.out.printf(hex + " ");
	   				this.edWriter.flush();
	   			} catch (Exception e) {
	   				System.out.println("I seriously don't remember java being this annoying.");
	   			}	
	      	}

	      	System.out.println();
	   	}
	   	System.out.println();
	   	try {
	   		this.edWriter.write('\n');
	   	} catch (Exception e) {
	   		System.out.println("I seriously don't remember java being this annoying.");
	   	}
	}