'Shell collisions along the x axis'

def check_shell_x_collisions(self, shell):

    collider = pg.sprite.spritecollideany(shell, self.ground_step_pipe_group)
    enemy = pg.sprite.spritecollideany(shell, self.enemy_group)
    if collider:
        setup.SFX['bump'].play()
        if (shell.x_vel > 0):
            shell.direction = c.LEFT
            shell.rect.right = collider.rect.left
        else:
            shell.direction = c.RIGHT
            shell.rect.left = collider.rect.right
    if enemy:
        setup.SFX['kick'].play()
        self.game_info[c.SCORE] += 100
        self.moving_score_list.append(score.Score((enemy.rect.right - self.viewport.x), enemy.rect.y, 100))
        enemy.kill()
        self.sprites_about_to_die_group.add(enemy)
        enemy.start_death_jump(shell.direction)
