'Restarts the level if Mario is dead'

def check_for_mario_death(self):

    if ((self.mario.rect.y > c.SCREEN_HEIGHT) and (not self.mario.in_castle)):
        self.mario.dead = True
        self.mario.x_vel = 0
        self.state = c.FROZEN
        self.game_info[c.MARIO_DEAD] = True
    if self.mario.dead:
        self.play_death_song()
