-- return true if a is less than some distance from b overlapping_areas = function(a, b) return a.x < b.x + b.w+20 and a.x + a.w > b.x-20 and a.y < b.y + b.h+60 and a.y + a.h > b.y-20 end