Can someone help me figure out why I cant get the 3rd state to

Can someone help me figure out why I cant get the 3rd state to function in this code? pin 9 wont change state
http://pastebin.com/D3as88bs

Are you having problem on line 96?

I dont know, i cant get that part of the code to respond no matter what actual code i put in the state, somehow the state is being ignored for that pin

strange, have you tried change the pin? not working at all? probably bad pin output but the code seems fine to me

i tried pin 9 first but had no luck as well, will try a different pin again and report back

pin 10 rather

thanks for the idea, you were right. the pin must be bad. finally found one that will work

yaya great news! whew.

What is the cause a pin 9 be bad?

As far as i can tell its just hardware failure, ive had problems with it before