 if event.state == SneakState::Start {
            let mut layer = layers.single_mut();

            if board.playing {
                board.playing = false;
                layer.set_action_bar("Paused".italic().color(Color::RED));
            } else {
                board.playing = true;
                layer.set_action_bar("Playing".italic().color(Color::GREEN));
            }
        }
    }
}</code></pre>
      </div>

      <style>
        .hero section {
          padding: 0 5rem;
        }

      