it wasn't a glitch, the goal changed and you were just lucky :)
edit: i guess i should mention it's a short game but dense with ideas so if you try to rush it you'd probably misunderstand what just happened.
(i.e you won, the "glitch" is part of the game)