Pedantic little change, but checking the count of the passbits stack is more than 0 prevents program from crashing if you press backspace too many times.