undo will not reset when you win - removed test code