def moving(boxes, threshold=5e-25):
    """Checks to see if boxes have kinetic energy ie moving"""
    for b in boxes:
        if b.body.kinetic_energy >= threshold:
           return True
    return False