Percolation Threshold in a square lattice