Doubt in --Piles Again!

In this question i think that for a particular index-
height of lipe must be equal to index as we can move it remaining indices on left but i am not able to figure out what must be the number of piles at any particular index.
pls help me in figuring it out.

same Q is discussed in live webinar by parteek bhaiya of game theory you can watch. if Still you are having problem then you can see my code its basic nim game. and sory for long delay.