public void buildPathHelper(Tile curr) {
		if (curr.getNextTile().size() != 0) {
			if (!path.contains(curr))
				path.add(curr);
			else
				return;
			for (int i = 0; i < curr.getNextTile().size(); i++) {
				buildPathHelper(curr.getNextTile().get(i));
			}
		}
		if (path.size() != 0 && curr.getNextTile().size() == 0) {
			path.add(curr);
		}
		
	}