dots[y][x] -> dots[x][y]; xCurrent -> xLeastAreaSize;