Astar search not working correctly

Fixed bug where an unreachable player was being selected as the
target of a monsters astar search.