Refactoring class Engine. New class NumberManager

Extracting methods and functionality from class Engine to the new class
NumberManager. New method ExecuteCommand added in class Engine.