Fix a few small bugs to allow valid wall placements