Update Main.java

very little code edits. Keeping the most of the code the same.