The pin variable is being declared twice in the OneByOne_core function