add constructor to MainThread that spawns surfaceholder and gamepanel