Rect Overlap error

Hi Hyperion,
I’ve tried making a version that uses his style of checking pixel brightness and I still get overlaps.
So it’s definitely my code at fault.

Any ideas as to what I’ve done wrong?