Added worst cases to functions, fixed long bug with children, worst
cases check not working?