Converted from Pyglet to Pygame for compatibility with CSIT computers