Fixed

Fixed your applet problem as well as refactored your code (basic intellij refactoring)