Removes the stack.

The stack actually isn't necessary, as Anthony pointed to me, since the recursive implementation already works with a stack. I don't have to make one explicitelly for the rules.