inverted switch state interpretation and added invert flag for all tiles
added net object for switch states and made entities switchable