private void buildWalls() {
		Random random = new Random();
		
		int procentWalls = random.nextInt(21);
		while(grid.getWallCoverage() < procentWalls && (procentWalls - grid.getWallCoverage()) > 2){
			int directionInt = random.nextInt(2);
			int randomLength = 1;
			int randomX = 0;
			int randomY = 0;
			Direction dir;
			if(directionInt == 0) {
				randomLength = 2 + random.nextInt((grid.getHorLength() / 2) - 2);
				int margin = grid.getHorLength() - randomLength;
				randomX = random.nextInt(margin);
				randomY = random.nextInt(grid.getVerLength());
				dir = Direction.HORIZONTAL;
			} else{
				randomLength = 2 + random.nextInt((grid.getVerLength() / 2) - 2);
				int margin = grid.getVerLength() - randomLength;
				randomY = random.nextInt(margin);
				randomX = random.nextInt(grid.getHorLength());
				dir = Direction.VERTICAL;
			}
			
			Wall newW = new Wall(new Position(randomX, randomY), randomLength, dir);
			if(grid.canHaveAsWall(newW) && grid.getWallCoverage(randomLength) <= procentWalls){
				grid.addElement(newW);
			}
		}
	}