Thank you for your suggestions! Indeed, that is the biggest bug in this game, that the player is locked only after the collision is registered one or a few frames too late, which allows the player to get by even if they get caught. Will definitely fix that. Will also see how the map can be better designed to maximise the concept!