lego detection