NOT WORKING PROPERLY - Random simple swap (problems with- doSimpleSwap out of range)