while is conditional meaning it needs a bool true or false value but get_overlapping_areas()
returns an array. The array type has the size()
method which returns an int so an operator (<, >) can be used to return a bool.
while get_overlapping_areas().size() > 0: