take core methods out of AppletGame so can be reused by non-applet programs