• Actually, your code is working just the way it is supposed to based on how it is written.

    Would you please take the time to explain what it is you are trying to accomplish, because what it appears to be is a logic problem. You aren't asking the right question in the code.