wip refactoring of pygame