added enum for player state