Implemented trapped chests & others

+ Added trapped chests
* Fixed a bunch of bugs in the redstone simulator concerning wires and
repeaters
* Other potential bugfixes

With thanks.
Do not insert comments in the middle of a code line. Always make the comment the last thing in the line, otherwise the code to the right of it becomes "hidden" due to excessive scrolling.