check for bounds properties, rather than an error-prone truthiness check
fix the part of the algo that determines whether a tile is fully enclosed
updates