def animate():
        if validate() == 0:
                pass
        else:
                scorealgorithm.calcscore(hooker = updatePlayingField)
                time.sleep(5)
                playing_field.delete(ALL)
                draw_map()
                scale_canvas()  
                root.update()
def createMaskAndScore(who=None):
    try:
        import psyco
        psyco.full()
    except ImportError:
        pass

    if who == critter.PREDATOR:
        m = mask.createmask()
        pred_mask = m
        prey_mask = {}
    elif who == critter.PREY:
        m = mask.createmask()
        pred_mask = {}
        prey_mask = m
    else:
        m = {}
        pred_mask = {}
        prey_mask = {}

    s = scorealgorithm.calcscore(pred_mask, prey_mask)
    return s, m