Fixed bug with path finding when moving across unavailable tiles.
Slightly modified A* for speed.