def gravity_effect(position, other_position):
    """Return effect other_position has on position."""
    if position == other_position:
        return 0
    elif position > other_position:
        return -1
    return 1