astar.c:
  NULL parent on node creation
  0 the path list id on path creation
  Remove/readd node when changing parent to sort the list
  check for NULL parent in CalculateMovementCost()
astar.c:
  broke long if into several statments for easier debugging