Engine

Almost rewritten
Square method goes fine, continue with number method