Trying to genericize Pygame