Fixed pygame import error, inverted debug messages and simplified test function.
Tweaks and testing.