Add class Command, add functions in engine class to proccess input