fixed bug in pathfinding where node.costToHere wasn't being initialised