refactor player sprite to its own class