swapped a long if statement w/ simple switch-case

Slex you do the rest im short on time.