Update Main.java

removed some unused code