Simple State Machine Example implemented in C++ based on the 'Programming Game AI by Example: Mat Buckland'