I assure you the switch method does work. The code you posted does not use the switch method. Are you looking for someone to change your posted code to use the switch method? Or will you be posting the code from your best efforts at using the switch method, then letting us know what your switch method code is supposed to do and what it does instead, and then allowing others to provide feedback on how to make your switch method work. Oh, and that switch method
is in your mind which I cannot read.