Fixed bug so that unexplored locations are only added from tiles that are
not blocked.
Also added a final check of the map in the event that the unexplored
location set is prematurely exhausted.