Pathfinding will now delete the grid and pathfinder from memory when done. Maybe this fixes a bug?