Added BoardState and IdleState.