Implmented factory and also refactored othelloImpl
Implmented factory and also refactored othelloImpl