add class Playerstate