Finished Main.java, fixed errors