I just finished the game and found a funny bug:
I managed to trap myself in level 5, by throwing a cube through an unlit portal onto the button - the portal then lit and I couldn't escape anymore! Since the portal was on I could only wander between two rooms with nothing but the (locked) exit! xD