Update cloth.js

- changed shuffle to a collection function and implemented some of its object handling side