Refactored GUI to separate java file to adhere to MVC architecture