refactoring othelloimpl