Slightly Randomized version of mark's code

Currently on Bobot