input is no longer global in Main.java