refactoring, moved face recognition logic to detector, moved logic to brain