Added logic gates and input devices

- added levers and buttons
- added logic gates like AND, OR, NOT, etc
- tweaked explosions
- fixed items deleting randomly