private void readMaze (String filePath){
			try (Scanner scan = new Scanner(new File(filePath));){
				this.width = scan.nextInt();
				this.height = scan.nextInt();
				scan.nextLine();
				for (int i=0; i<height; i++){
		            String[] myList = scan.nextLine().split(" ");
		            List<Integer> row = Arrays.asList(myList).stream().
		            		mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());
		            for (int j=0; j<width; j++){
						if (row.get(j).intValue() == START)
							startP = new Point(j, i);
						if (row.get(j).intValue() == EXIT)
							exitP =  new Point(j, i);
					}
					map.add(row);
				}
			} catch (FileNotFoundException e) {
				System.out.println("No such file " + filePath);
				System.exit(1);
			}
		}