Over the past years we often saw the use of a so called "State Machine" in student projects.

A state machine basically only has one state per time, and after time or a user input moves on to another specific state. This can be used to create basic games or make an experience react to a user decision.

These tutorials will help and support you in creating a state machine for your own project.

Links

Finite State Machine on an Arduino

What is a state machine?

Machino

A TU Delft program to easily draw state machines and generate the code for them