engine is now contains command pattern.

all current test cases pass.

Signed-off-by: Nicholas Lum <nicholaslum444@hotmail.com>