Recalculation method added, A* now functioning perfectly