Extract asking to play again into method, refactor forEach in checkCollision with Array.prototype.some