created collision.js and cleaned play.js