add more meat to main to quell dead-code

Use the stack functions in main so rust stops complaining about dead-code.