finally set an initial state upon new state diagram
finally removed the statediagram init code from transition loop
fixed the critical bug where the character key binding doesn't work in conjunction with current state