// storing collision detection flag
// BUG: For some reason the top and bottom values obtained in ssRect
// are not consistent with the image display, hence the subtraction
// of 100 below
let collisionFlag =
asteroidRight > ssRect.left &&
asteroidLeft < ssRect.right &&
asteroidBottom > ssRect.top - 100 &&
asteroidTop < ssRect.bottom - 100;