figured out .pop error, need to refactor game engine