Applet shake/shift

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