I already have a Mega 2560 on-hand and will use that board with relay modules attached to the light-type signals and the stepper motor that's built into the semaphore. Some of my code requires using a variable that will be called by a specific segment of the code and then stop being used (like a java function). How do I implement this type of variable, given it's only a loop counter?