Game state machine in Dart.
I tried to make it look like the Phaser state machine.