Fixed a bug where locks could be unlocked, making the game unwinnable.

Should fix the bug Jason found!