so.., the result will print something like:
(line1) 00100
(line2) 00110
(line3) 01100
if you read it from top to bottom: line 1 vs line 2 then there is 1 switch, because in line 1 the 4th number -in this case a 0- , switches to a 1 in line 2
and there are 2 switches from line 2 to line 3 because the 0 in second place and the 1 in 4th place of line change from a resp. 0 to 1 and a 1 to 0
the thing is: there must only be 1 switch from line to the next line... how can i check that? and if it is so, then it may continue, and if it is not the case then it should do something else.