From chaotic road traffic to cooperative opportunistic percolation using cellular automata