Correct Facing Direction for chests & stairs & slabs

The getOppositeDirection function could probably be put elsewhere to be
reused. This one is only for 4 faces.

Partially fixes #119
For consistency, there should be a blank line after this declaration.