Corrected test cases and killed a few bugs. All test cases with 8 rounds now works.