Add minimax strategy
use getNumberRows & getNumberColumns instead of relying on length & size()