About grounding

woody_unreal:
are you using a copyed coding from someone else ?

No it's my own code on which someone suggested modifications for on this thread: http://arduino.cc/forum/index.php/topic,97012.0.html
I know the code is messy, sorry about that, I intend to clean it up when I get everything in order