A better way to fix the previous bug - Instead of initializing the stack with an arbitrary number of dummy elements, simply allow for stack underflow.