function animate() {
if (anim) {
cancelAnimationFrame(id)
id = requestAnimationFrame( animate );
explode();
} else {
cancelAnimationFrame(id)
id = requestAnimationFrame( animate );
render();
}
stats.update();
}