solving  percolate() and isFull(row,col)