a python game based on pygame api