Fixed compilation/runtime errors for StatedGame (yay)