Implement a simple state manager for the player.