Updated to use the pySFML API