Fixing bug in which multiple consecutive nextState calls with the same state would give invalid results in BackwardStateMachine.
GameLogicContext now properly adds the base and input queries.