Have you tested your code beside compiling it? Just a few issues that you may have fixed already.

For example in this code block:


// What are the ints for? The are declared but...