Javascript sliding puzzle of a BMW M3