refactor isValueIn method for buildboard function