Gameplay handled by finite state machine - prototype