switch { } need help

You need the break word to stop the code going further.
If you leave it out, and you can, then after doing the match code it will fall through and do the code following. If you use it in this way it is a good idea to comment the fact that the break is deliberately missing.