in reply to Compilation error
I would definitely recommend reading through the debugging tutorial. Stepping through your code a line at a time will help you visualize how your code is actually behaving.