Fixed error in main file: where checking was done on multiples of 2 . Now the shuffling and checking is done as per the spec.
Fixed errors on main file. Shuffling and repeat sequences were checked after multiples of 2 loops which is incorrect. Now they are checked first after 2 loops and then after every loop