I have implemented a puzzle using snap.svg library everything works but however my algorithm which allows me to shuffle the Puzzle Tiles is a little faulty, during the gen