Changed case statement to if/else for increased legibility and conciseness

I didn't change any code functionality, but I shifted your case statement on like 135 to an if/else chain.  This is a purely stylistic choice, but I think it adds to the project because 1.  it eliminates