Debugging help

How about a schematic? And you know you can attach your code as a file, don't you? If you're unable to use code tags like you should then attach the file.