Inserted default cases in switch statements dealing with the user input