Update Main.java

Removed extraneous code