Added debugging controls
Trying to fix a weird race condition.
Added two debug text divs.
Handle the empty-mine condition more gracefully.
Was passing the wrong argument to rectilinear distance.
Fixes to dwarf behavior.
Added some stupid assertions.
Fixed a stupid bug with neighbors.