Made playerSprite global

so animation speed can be changed