Update Main Game Code

Doesn't run, this is only finite state machine math...