got all but engine fleshed out, but error in .pop method