Messed around with AStarPathfinding

tied to get Astar to create a new path while hovering over tiles to move
to and count the number of waypoints there are but I got nowhere!!!!!!!