Beginner saying hello and looking for some guidance in coding

Your code
is very hard to
follow, because
it is inconsistently
indented.

You would
be far better off putting
every { and } on a new line (and eliminating useless ones)
and using Tools + Auto
Format to properly indent the code.

There is no switch statement in you code. Therefore, there are no cases. Therefore it's hard to understand what your problem with the switch statement is.