Working on getting the code to run as an applet