It seems to me that you could use a switch statement to clean up your code, it would probably increase readability also. I think there are some schools that say you can't use certain things before...