Refactored some methods in gui.Window, refactored all UI classes in new
package gui.