Made Cmdinterpreter take a programstate pointer to check what it should display