fixed some bugs to the Pyggame version