Update Main.java

Fixed bug at start