'Mario collisions with Koopas in their shells on the y axis'

def adjust_mario_for_y_shell_collisions(self, shell):

    if (self.mario.y_vel > 0):
        self.game_info[c.SCORE] += 400
        self.moving_score_list.append(score.Score((self.mario.rect.centerx - self.viewport.x), self.mario.rect.y, 400))
        if (shell.state == c.JUMPED_ON):
            setup.SFX['kick'].play()
            shell.state = c.SHELL_SLIDE
            if (self.mario.rect.centerx < shell.rect.centerx):
                shell.direction = c.RIGHT
                shell.rect.left = (self.mario.rect.right + 5)
            else:
                shell.direction = c.LEFT
                shell.rect.right = (self.mario.rect.left - 5)
        else:
            shell.state = c.JUMPED_ON
