Update PathFinder.js

did not need new paths and old paths list only slowed it down also did not need two while loops by putting the new paths at the end of the list and loading the first and by deleting the first after extends made the path finder better next is to implement best first search be reorganizing the lists order by closest paths to goal ad by not deleting older paths and ignoring them makes A*.