Changed the way switches and walls work, to allow for inverted switches (and more).