public void makeWalls(){
		int blockX, blockY;
		int numBlocks = (int)(percentWalls * (Main.COLUMNS * Main.ROWS));
		//System.out.println("the number of blocks = " + numBlocks);
		for (int i = 0; i < numBlocks; i++){
			Random num = new Random();
			blockX = num.nextInt(Main.ROWS);
			blockY = num.nextInt(Main.COLUMNS);
			if(Main.MACHINE.qtable[blockX][blockY].isGoal() || Main.MACHINE.qtable[blockX][blockY].isWall()){
				--i;
			} else {
				Main.MACHINE.qtable[blockX][blockY].setWall(true);
				Main.MACHINE.qtable[blockX][blockY].setColor("DARKGREY");
				rectangles[blockX][blockY].setFill(colorTable.get(Color.DARKGREY));
				//System.out.println("blockX: " + blockX + "  blockY: " + blockY + "isWall: " + Main.MACHINE.qtable[blockX][blockY].isWall() + " Color: " +  Main.MACHINE.qtable[blockX][blockY].getColor());
			}
		}
		for (int r = 0; r < Main.ROWS; r++){
			for (int c = 0; c < Main.COLUMNS; c++){
				Main.MACHINE.qtable[r][c].setMoves();
				if (Main.MACHINE.qtable[r][c].isNoValidMoves() && !Main.MACHINE.qtable[r][c].isGoal()){
					Main.MACHINE.qtable[r][c].setWall(true);
					Main.MACHINE.qtable[r][c].setColor("DARKGREY");
					rectangles[r][c].setFill(colorTable.get(Color.DARKGREY));
					System.out.println("Map fixed at [" + r + "][" + c +"]");
				}
			}
		}
	}