Your if-statements are a bit jumbled. and bad habits! :P
DAMN YOU BAD HABBITS?! WHY DO YOU TORMENT ME IN SUCH A CRUDE AND AWFUL WAY?!
;_)