State Machine Test Game In C