function checkColl(b1, b2) { var dx = b2._x-b1._x; var dy = b2._y-b1._y; var dist = Math.sqrt(dx*dx+dy*dy); if (dist