'Updates while Mario is in castle at the end of the level'

def update_while_in_castle(self):

    for score in self.moving_score_list:
        score.update(self.moving_score_list, self.game_info)
    self.overhead_info_display.update(self.game_info)
    if (self.overhead_info_display.state == c.END_OF_LEVEL):
        self.state = c.FLAG_AND_FIREWORKS
        self.flag_pole_group.add(castle_flag.Flag(8745, 322))
