Update Main.java

initiate variable limit.