worked on the player with pyglet.