entirely restructured pygame_test