'Moves fireball along the x, y axes and checks for collisions'

def adjust_fireball_position(self, fireball):

    if (fireball.state == c.FLYING):
        fireball.rect.x += fireball.x_vel
        self.check_fireball_x_collisions(fireball)
        fireball.rect.y += fireball.y_vel
        self.check_fireball_y_collisions(fireball)
    elif (fireball.state == c.BOUNCING):
        fireball.rect.x += fireball.x_vel
        self.check_fireball_x_collisions(fireball)
        fireball.rect.y += fireball.y_vel
        self.check_fireball_y_collisions(fireball)
        fireball.y_vel += fireball.gravity
    self.delete_if_off_screen(fireball)
