Update Main.java

Need some help, got a portion done.