Build transition & reward tables