On a $M\times N$ board, some cells are occupied. Find the size of the largest square of unoccupied cells.