start of the java applet; not really sure how i should be using the buttons though