changing window to inherit directly from PApplet