Sketched out occludeObjects function