Update Main.java

Cleaned up the code by removing unused variables.