sorry i should have made it clear that your not supposed to press the buttons then your blocks get stuck. sorry!
EDIT: I changed it so the exit is blocked up when you hit the buttons, hopefully that makes it more clear.