The State Machine: Playable Presentation

Rename the extention of the file "machine.ex_" to ".exe" and run it.
Use Space/Enter keys for mining... Enjoy the acquired wealth.

The complete source code is adjoined.
