changed out custom Stack class for LifoQueue