This is the problem , I was trying to solve:
I think , that each row should be treated as a sub-game.
And we need to find a grundy-value for each row and then we need to Xor the values to get the result.
The problem I am facing is that I am not able to extract the grundy number from each sub game.
Your Help will be highly appreciated.