Tile.bed, directional, and checkWalls