'SimulateGameState' now handles actions in functions.