Need Help with was seems to be Syntax Errors

One problem (feature) is that your switch statements have no breaks, so if you jump to 5, lets say, all the functions below will be called, too. If thatis what you want, fine, otherwise you need a break after every function call. It is also good programming practice to include the default: case to add some error handling.