private static ArrayList<Location> getAsLocationArray(SearchNode searchNode) {
		ArrayList<Location> searchPath = new ArrayList<Location>();
		SearchNode currentTile = searchNode;
		while ((currentTile = currentTile.parent) != null) {
			searchPath.add(currentTile.getAsLocation());
		}
		return searchPath;
	}