code: def bring_to_front(self):
          
          if not self.parent:
              return
          self.z_order = self.parent._z_ordered_sprites[-1].z_order + 1
docs: adjusts sprite's z-order so that the sprite is on top of it's
          siblings