You should also not put so much code in the main method. In my opinion, a main method should contain one statement which starts the application.
You should be writing the logic down on paper, not trying to write any code until the logic is worked out, and then only writing a few lines of code before running it.