almost done w/ gui.java (balance updater algorithm)