Added a way to get the path from the next tile to make sure it doesn't go over the battery capacity if havnig to travel back from there