Castle s07e16 Episode Script
The Wrong Stuff
You know, after six months, Mars is starting to remind me of Kauai.
Except without the water, or the hot girls in bikinis, or the air.
What I wouldn't give for a hot girl.
Hell, after all this time, I'd even take an ugly one.
Assuming she came with a paper bag.
Oh, real classy, Richwood.
Just repair the short and make sure the 4-B coil isn't fried.
We can't afford to have the power grid compromised.
Aye, aye, Captain.
Oh, boy! Bad news.
It's charred.
I may have to replace the power coupling and reboot A-level systems Didn't read that, Richwood.
Interference.
Come again? Watch out! Tom? Tom! Oh! Yes! I can't wait to take off my Got ya! shoes.
Dad! Beckett.
So much for a quiet evening at home.
I thought you guys were working late tonight.
Slow murder day.
We got off early.
You're playing laser tag? Without me? Is that my gear? Oh, Dad, Beckett, this is David.
He bet me I couldn't beat him.
She trounced you, didn't she? Yeah.
Oh, my! What is going on down here? Far too much, apparently.
Uh, are those my pajamas? Uh Oh, oh, oh, oh.
I'm so sorry.
Ben Um, family, Benjamin.
Ben, meet my family.
Castle, we got a murder.
Uh, to solve, not to commit.
Bye! But those were my softest pajamas, and now I'm gonna have to burn 'em.
Is it just me, or is the loft getting awfully small these days? Well, four adults together in one space.
We're bound to step on each other's toes.
Yeah.
Well, there was a lot more toes than usual tonight.
Hey, guys.
Glad you're here.
You're gonna wanna see this.
Especially you, Castle.
What is this place? It's Mission Control.
And that's Mars! And there's your body.
Our victim is on Mars? The secret manned mission to Mars rumors were true.
I knew it! You know, this might be a little out of our jurisdiction.
It's not Mars.
This is Operations Director Ed Redley.
This is Detectives Beckett and Ryan.
Castle.
Uh, what you're seeing is a live feed from a simulation we're conducting in advance of a real Mars mission.
Who's "we"? NASA? It's the Mars 2018 Project.
We're privately funded.
Yes, by Viggo Jansen, the Internet billionaire.
He promised to put humans on Mars by 2018.
Held a competition and everything.
I signed up for the program, but I didn't get in.
Wait.
You signed up to go to Mars? When? A couple years ago.
Where was I? We were fighting.
The victim, pilot Tom Richwood, was supposedly alone on the, uh, planet's surface conducting repairs.
We were in a communication blackout, part of simulating planetary conditions, when the mission commander broke protocol to tell us they found Tom dead.
They don't think it was an accident.
Well, I'd like to see the body.
So, where is the simulation? Couple of floors below us, and that's easier said than done.
In order to mimic conditions on Mars as well as discourage any cheating, the simulation is filled with noxious gas.
Hey, it won't kill you, but it will induce severe nausea, and a rash.
It would take several days to vent the sim to make the air breathable, so if you wanna go in, you're going to need to wear spacesuits.
Best case ever! Castle This way? Yeah.
Okay, great.
What can you tell us about the victim? Well, Tom Richwood was the mission pilot.
Former Navy Top Gun, did a tour with NASA.
What about family? None.
Which made him the perfect candidate for the mission.
He beat out some of the smartest, most competitive candidates in the world to be a part of the first manned team to Mars.
They all did.
Who else is inside? Our four remaining astronauts.
The team's medical specialist, Dr.
Haroun, is waiting for you.
So has anyone been in or out of the simulation recently? No.
It's a sealed No one's been in or out since the astronauts entered six months ago.
Which means one of them probably did it.
Yeah.
There's only three suits.
Um, that's okay.
We don't all need to go in.
I'll go take statements back at the facility.
Seriously? You don't want to go to Mars? A, it's actually not Mars, and B, I'm happy here on Earth.
But have fun, Castle.
Trust me, I will.
- Are you done? - No.
Finally made it to Mars! Didn't even have to go to astronaut training.
So you really signed up to go to Mars, huh? Wouldn't that be cool? I mean, not so much for you.
But for me? Mmm-hmm.
Detectives? I'm Dr.
Rusham Haroun, the bio-science officer.
He's over here.
And nobody saw this happen? No, we were all in the module.
We heard him scream.
He must have fallen into the coupling coil, because right then, the power went out.
By the time Angela and I got out here, he was gone.
It took us another 10 minutes to get the power restored.
It looks like a stab wound.
Delivered with a lot of force.
Well, where's the murder weapon? There wasn't one.
But one of his tools, his screwdriver, is missing.
It looks like this.
It's pretty rocky around here.
There's no footprints.
And since the killer was probably wearing a suit, there's not gonna be any DNA.
Let's get his body to the morgue and find out.
And get CSU down here.
I want this place searched.
If no one's been in or out, then that murder weapon is still inside here.
Dr.
Haroun, I'd like to speak to the other astronauts, please.
They're inside.
Follow me.
One small murder for man.
One giant mystery for mankind.
Even when you whisper, everyone can hear you.
I may need to replace the power coupling and reboot A-level systems - Didn't read that, Richwood.
- Interference.
Come again? Watch out! You know the rest.
And where were each one of you when this happened? Angela, Rusham and I were here, in the command module.
Mikhail was over in engineering.
And is there access to the outside from engineering? There is emergency hatch, but if I had gone through it, the alarm would have sounded.
Plus, as part of the program, we're all closely monitored.
In case we lose consciousness or there's a suit malfunction on an EVA.
We all have trackers under our skin.
And M.
I.
R.
A.
keeps a record of all our movements.
Who's Mira? That's what we call the mission computer.
Well, I'd like to take a look at those records.
I will be happy to provide you with any records you require, Detective Beckett.
It talks? Yeah.
We think of her as the sixth member of the crew.
Isn't that a little 2001? She is programmed to learn and adapt, but she's more Siri than HAL.
Ask her where you are.
M.
I.
R.
A.
, where are we? You are aboard the vessel Tenzing Norgay in the northern lowlands of Mars.
She actually thinks she's on Mars.
Regardless, I'm gonna need to ask all of you to join me at the precinct so I can interview you properly.
That could be a problem.
I'm sorry, Detective, I can't let you remove the astronauts.
I don't have that kind of authority.
Well, then who does? That would be me.
And my astronauts aren't going anywhere.
That's Viggo Jansen! The Viggo Jansen.
Detective, if we shut down now, we will lose months of priceless data.
Millions of dollars' worth of experiments will be compromised.
We'll lose half a year, and we don't have that time.
Mr.
Jansen, it's not a request.
A man has been murdered, I need to conduct an investigation.
And I will do everything in my power to help you, short of shutting down my sim.
Mars is our generation's space race, and my team's gonna be first, not the Chinese, or Mars One, or that puffed-up movie producer, Sir Ian Rasher.
I could get a court order to compel you.
And with my legal team, it'll take you months.
Or we could work together.
I give you all the access you need, and my simulation keeps running.
Fine.
For now.
But if I find out any of those people are responsible, you won't stop me from removing them.
Yeah.
Well, according to this tracking data, none of them seem responsible.
They were all exactly where they said they were at Tom's approximate time of death.
It even confirms that the mission's rover was still parked at the habitat at the time of the incident.
Well, there goes my Rise of the Machines theory.
Okay, so if all the people inside are accounted for, then our killer must have come from outside of the simulation.
We would know.
The airlock door is the only way in or out.
It's alarmed and monitored.
Uh, excuse me.
Detective Beckett, there's a message coming in for you from the habitat.
I can put it on the monitor if you like.
Yeah, please.
Hey, Espo, what do you got? I was just going through our victim's video diaries.
There's something you need to see.
Six months in, and I know part of this mission is a psych experiment.
Maybe the close quarters are starting to get to me, but I think I'm starting to see things.
When I was out there today, I could've sworn I saw someone, and it's not the first time.
I know it's not possible, but I don't think we're alone.
Hang tight.
I may have some more questions.
Go ahead, Espo.
Hey, so I just finished talking to the other astronauts.
None of them seem to have any idea what Tom was talking about.
All right, thanks, Espo.
The CSU just finished their initial sweep.
There's no one else in that simulation.
It's possible Tom was seeing things.
All our tests show that being locked in a confined space with others can play tricks on your mind.
Only, delusions don't kill.
And if what Tom said was true, then whoever killed him might have been able to get in and out undetected.
I told you, Detective, given our security, that's impossible.
Sir.
Maybe not.
At Detective Ryan's request, I ran a check on all our security systems.
Everything looked normal until I got into the deep code.
See that? Oh, God.
What is it? Our security system's been hacked.
Key cards, alarm codes Meaning someone could have broken into the simulation.
Based on our backup files, these changes were made two days ago.
Sometime between Digital tracing indicates we were breached from the outside.
Someone broke through our firewall.
Can you tell who? We log every IP address that connects to the mainframe.
I'm running a trace now for that time window.
There.
Third one down.
I don't recognize that one.
All right.
We should be able to trace it.
Don't bother.
I just did.
It's coming from a residential Wi-Fi.
Registered to a You gotta be kidding me.
Who is it? Clint Granger.
Hothead pilot.
He was one of our applicants until he was kicked out of the program.
Why'd he get kicked out? He accused Tom of sabotaging him during candidate testing.
Claimed it cost him the pilot's spot.
So he tried to run Tom over in the parking lot.
And when was this? Seven months ago.
But he did say he'd be back to finish the job.
Yeah, I was pissed.
I'm still pissed.
He slipped something into my drink before the final round.
Slowed my reaction time.
So you tried to run him over with your car? It should have been me on that mission, not him.
He stole my spot in history.
And you ask me? He got what he deserved.
But I did not kill him.
And yet we traced that cyber-attack to your apartment.
I am a pilot, not a computer geek.
I couldn't rewrite that code if the mission depended on it.
You could've hired someone.
Yeah, but I didn't.
Look, when Tom was getting himself murdered, I was at dinner with a friend in Connecticut.
And when that hack took place from my Wi-Fi, I wasn't even in the country.
Someone's setting me up.
Granger's alibi checks out.
He was at dinner with a friend when Tom Richwood was killed.
What about the night the hack took place? Granger was visiting his brother in Nova Scotia.
It wasn't him.
Mars, Nova Scotia.
This guy really loves barren landscapes.
Come on, Ryan.
You're telling me you have no desire to go to Mars? I prefer my oxygen without a can.
Where's your sense of adventure? Of exploration? Of destiny? If I wanted to fly thousands of miles to see a lifeless orb, I could just visit Jenny's grandmother.
Same hostile environment.
Same freezing temperatures.
Same noxious atmosphere Huh.
Huh? "Huh," what? This is a video of Granger's apartment lobby the night of the hack.
Check it out.
This guy enters the building at 11:05 p.
m.
, just before the hack took place.
Now watch Fifteen minutes later He leaves the building.
He could have piggybacked on Granger's wireless, and used that to carry out the attack on the simulation security.
Yeah, but who is he? Name's George Reyes.
The folks down at Mars 2018 recognized him immediately.
He's the senior facilities engineer, and he called in sick yesterday.
Nobody's been able to reach him since.
Did he have a motive to break into the simulation and kill Tom? Not that anyone knew.
But his colleagues say that he's been acting secretive for the last couple of days, ever since receiving a private communique from his wife.
What has his wife got to do with this? Maybe everything.
Ask me who his wife is.
Who's his wife? Angela Olvera.
One of the other astronauts.
So what was on the message? I was letting George know that I wanted out of our marriage.
You broke up with him from space? He was sending me all these sweet e-mails.
I couldn't let it go on.
I had to tell him that I had fallen for someone else.
Someone on the mission.
Was it Tom? No.
Not Tom.
Oh, God.
What? Angela? I didn't say who it was in my letter.
Maybe he thought it was Tom.
Well, did he have reason to? Yeah, he did.
Tom wouldn't stop hitting on me all through training.
George told him if he didn't stop, he'd make him pay.
Yo, I found him.
He's at the airport.
Just bought a ticket to San Francisco.
Airport security just picked him up.
We were a team, Angela and me.
We were gonna go to Mars together or not at all.
But when she got in and I didn't, I couldn't stand in her way.
Hard enough to have her leave the planet, but to leave you for someone else? You must've been devastated.
Try utterly destroyed.
Is that why you hacked security? In order to break into the simulation, and kill the man that you thought was Angela's lover? I'm telling you, I had nothing to do with Tom's death.
I was going to sabotage the mission.
I figured if the simulation suffered a catastrophic failure, it'd set the program back, and Angela would come home to me.
But I chickened out.
The hacks, setting it up to lead back to Granger, that's as far as I got.
I never went inside, and I sure as hell didn't kill anyone.
Then why were you leaving town? She dumped me.
How was I supposed to keep going to work there? I needed a fresh start.
And since I got her letter, I've spent nights drowning my sorrows at O'Malley's.
That's where I was when Tom was murdered.
You can ask them.
Okay.
Then, so who else could've used your hack to get through the simulation's airlock? It was calibrated to my biometrics.
No one else could've used it.
- But someone did.
- No.
If they got in, they did it some other way.
There is no other way.
I'm not so sure about that.
What do you mean? I studied the facility plans.
The simulation is like a bank vault.
To get in, you gotta get past guards, security systems, cameras.
But like a bank vault, if you're motivated enough, there's always another way in.
You really think someone could have tunneled their way into the sim? No, but since George's alibi checked out, we're gonna have to look at all of our options.
Including the unlikely ones.
According to George's map, this abandoned utility access runs directly under Jansen's facility.
Yeah, but who would hate Tom enough to tunnel through five feet of concrete to kill him? I don't know, but But it looks like someone did.
Castle, boost me up.
Why am I always on the bottom? Yes, dear.
Planets, dank access ways.
Is it just me, or does this remind you of Alien? I know that you want this to be science fiction, but we are not in space.
No! But wouldn't you like it to be? Come on.
You're a sci-fi geek.
Wouldn't you just love to go to Mars? Of course, I would.
That's why I applied to Ian Rasher's program last year.
Wait, what? You applied to go to Mars? Without me? When? Well, we were fighting.
Oh, okay.
Well, I deserved that.
Oh, jeez.
Castle.
See anything? Someone did tunnel up.
Castle, I think I found the murder weapon.
Do you hear that? Whoa.
Hear what? Oh, whoa! What happened? Something is down here.
Something? What the hell is that? Told you this felt like Alien.
Castle, stop.
This is not Alien.
Did that look human to you? Actually, no.
Right.
See, I'm betting it's a Xenomorph stranded here on Earth.
Attracted to the simulation because it needs the toxic environment.
Probably saw Tom as encroaching on its territory and killed him for it.
What What are you doing? I'm checking you for bites and scratches.
Making sure you didn't somehow get impregnated.
If you think that's how I'd get pregnant, we need to talk.
There! Beckett! It shed its skin! It's not skin.
It's a gas mask.
And that's a breathing hose.
For a human.
To protect themselves from the fumes of the simulation.
Someone was trying to break in.
Yes, this was the access point.
Why would someone tunnel into my simulation? Well, maybe it's one of your competitors.
It could be espionage, or sabotage.
And our victim might have found out, and threatened to expose them.
Either way, this explains what he saw.
Why he thought there was someone else in there with them.
How did they elude my cameras? Well, maybe they were working with someone that was involved in your program, and knew when the cameras would be blacked out.
Excuse me.
Beckett.
Hey, so CSU just confirmed it.
The blood on the screwdriver belonged to Tom.
It's our murder weapon.
Okay, any prints? No, but since the killer was in the simulation Then they would've been wearing gloves.
Um, okay.
What about the gas mask? Anything from that? It looks military, but we're still trying to run it down.
Meantime, Ryan's pulling camera footage from the surrounding area.
Maybe we'll get lucky, catch our alien exiting one of the access points to the utility tunnel.
Probably won't know anything till morning.
All right, keep me apprised.
Okay, why don't you think about anyone that would've wanted to breach your simulation and we'll keep you posted on what we find.
Yeah.
Oh, my God.
What a day.
I feel like I'm still covered in spiderwebs.
I cannot wait to take a hot shower.
Oh, maybe I could, uh, join you.
Ooh, that'd be nice.
We could relax, have a glass of wine and Do you hear that? It's your mom.
And Ben.
And Alexis is here.
With friends.
What did I tell you! Maybe we could go to a hotel.
And yet you think you could survive being stuck in a space capsule with four other people for a year.
I could if you were one of those people.
Oh.
Wow, you guys! Get a room! We would, if there were any left.
Maybe you shouldn't have been so quick to sublet your place.
You know, maybe we could just set up a schedule.
Or they could give us a heads-up and let us know what to expect when we get home.
I'm gonna call a family meeting.
Or we could just go to Mars.
Yeah.
I don't think you'd be happy there.
There's no showers, there's instant coffee and you have to bag your own Hey, Castles.
Hey, any luck on that security cam footage? Nada, your alien must have accessed the underground where there wasn't any coverage.
But we did have better luck with that gas mask.
CSU was able to pull exhaled breath condensate from inside the face plate.
It contained trace amounts of DNA.
We get a match in the system? Not our system.
But as part of the Mars 2018 program, every applicant had to submit sample DNA.
So we ran it against that database, and guess who popped up? No! Granger's our alien? So he was getting in and out, just not the way we thought.
Which means his alibi was a lie.
As soon as he knew we were onto him He went back to destroy the evidence.
You bringing him in? I would, if we could find him.
But he's not at his place and he's not answering his phone.
Okay, put out an APB.
After our encounter in the dark, he might be on the run.
I may know how to find him.
That gas mask, it's an uncommon make.
Not a lot of suppliers in the city carry them.
But I was able to track down the serial number to an Army-Navy supply store uptown.
Did they confirm that Granger bought it? No, the mask was purchased a couple of months back, so no one remembered the buyer, but it was charged to a corporate account.
A company called Newton Endeavors.
What do we know about them? Not much.
I couldn't find anything on the Web, but I was able to track down an address out in Queens, in Willets Point.
Well done.
Newton Endeavors.
Sounds space-related.
Space, the final frontier.
These are the voyages of Castle and Beckett.
Their ongoing mission to explore strange new motives.
To seek out new witnesses and new suspects for murder.
- To boldly go where - Oh, right over here.
Excuse me? Is this Newton Endeavors? I'm sorry.
This is private property.
I'm gonna have to ask you to leave.
NYPD.
I'm gonna have to ask you to open that door.
What the hell? Is it just me, or does that capsule look incredibly familiar? Who would wanna build a replica of Jansen's Mars colony? The competition.
Granger must've been breaking into the sim to steal technology for Jansen's competitors.
I don't care if we have to pay them triple.
We cannot fall any further behind! And I think I know which one.
Yep.
All right.
Sir Ian Rasher.
Billionaire, playboy, adventurer.
And possible accessory to murder.
You may wanna rethink your application to his program.
All right.
Good, good.
Mr.
Rasher? Detective Beckett, NYPD.
I was wondering if we could have a word.
Of course.
What can I do for New York's finest? Well, you could start by telling me where Clint Granger is.
I'm sorry, Detective.
I'm afraid I don't know who that is.
Are you sure? Because, looking around, I'm guessing he's the guy that you hired to steal Viggo Jansen's plans for the Mars simulation.
Detective, I employ the world's best engineers.
Why would I bother wasting my time on my competitor's technology? Maybe because you're falling behind them? It's no secret your last two rocket launches were spectacular failures.
You wanna win, so you needed to buy a competitive advantage.
And after one of Jansen's team members discovered what you were up to, a man with your reputation and knighthood, you had no choice but to have him killed.
Killed? Who was killed? One of Jansen's astronauts.
Tom Richwood.
I had nothing to do with that.
Well, the best way to convince me of that is to tell me where Granger is.
Unless you prefer prison.
Okay, yeah.
I was spying for Sir Ian.
He promised me the pilot's slot on his mission if I did.
But I was telling the truth about Tom.
I didn't kill him.
I have an alibi, remember? Alibis can be bought.
We found your DNA on the gas mask.
We know it was you in the access way.
Because I didn't want it to look like I had anything to do with this.
I went to make sure that I hadn't left anything there that could point back to me.
Like the murder weapon? Oh, come on, if I killed Tom, do you really think I'd be stupid enough to leave the murder weapon there? Besides, I was never inside the simulation.
That would've been way too risky.
Too many opportunities to get caught.
Then why the gas mask? It was a precaution.
I wasn't using the tunnel to get in.
It was a drop point.
You were working with someone on the inside.
I needed access, he needed money.
So we struck a deal.
He'd download schematics and plans and drop them for me in the tunnel.
Who? Mikhail Dankov.
The astronaut? If Tom was onto him, then maybe he's your killer.
We checked his tracker.
He was inside the habitat at the time of the murder.
Mikhail knew if his movements were being recorded, he'd never get away with what we were doing.
So he beat the system.
He cloned his tracker before they embedded it under his skin.
As long as no one was looking, he could slip out at any time.
Mikhail? Yes? I'd like a few words with you.
What about? Your business relationship with Clint Granger.
Hey! Hey! Come on, Mikhail, you're crazy.
Bro, where you gonna run? You're on Mars.
I hate to admit, but it's good to be out.
Go ahead.
What they say? Fresh air, Times Square? Well, after the Mars simulation, prison should be a breeze.
So I was trading information.
Big deal.
I was leaving the planet and never coming back.
I wanted to make sure my family was taken care of.
Oh, noble.
You Americans.
Little corruption never hurt anyone.
I don't think Tom would agree.
Tom? Tom was jackass.
Drove everyone crazy the way he doled out food and supplies and tried to leverage everyone for making even tiniest error.
Trust me, they may be scared to say it, but no one's sad he's dead.
No one was looking forward to spending rest of lives with him on other planet.
And yet, you are the only one that is unaccounted for during his murder, which means you are the only one that could've killed him.
Mmm, no, I could not.
I can prove where I was during the murder.
How? When Commander Kim sent me down to engineering, I used rare time alone to take pictures and download schematics from life support, to give to Granger.
I still have the drive with all of my photos.
They're time-stamped with the mission clock.
So your alibi is that you were spying for Granger? Go.
Look at my photos.
You'll see.
So, I went through all of Mikhail's photos from the night Tom was murdered.
As you can see, he's telling the truth.
See his reflection? Yeah.
And the module clock confirms the time.
Maybe he faked the time.
Or maybe it was Granger after all.
It wasn't Granger.
Uh, Ryan, go back.
To There! Now, zoom in on the window.
Look down on the bottom right.
Is that the rover? I thought the computer said that it was docked during the murder.
Clearly, the computer was wrong.
Now, uh, push in on the rover's arm, and filter out some of that reflection.
It's the screwdriver! There's your killer, holding the murder weapon.
The rover did it! The rover was out? This can't be right.
All the data from M.
I.
R.
A.
indicates that the rover was docked when Tom was killed.
I'd say the data's wrong.
And according to your literature, that rover has the speed and dexterity to kill with mathematical precision.
Mr.
Jansen, who has access to the rover controls? One of your astronauts? Someone at mission control? No one has access.
The rover is an extremely complex piece of equipment.
Under human control, there's too high a margin for error, so we designed it to interface solely with the computer.
Our astronauts describe the sort of task they want carried out and M.
I.
R.
A.
executes it.
Is it possible someone could've asked her to kill Tom? M.
I.
R.
A.
wouldn't comply with that sort of command.
But something's wrong.
I need to talk to her.
Well, is there somewhere we can do that privately, without anyone hearing? Yeah.
The computer module pod, inside the sim.
What's going on? Let you know soon.
In here.
There.
I've cut off communications with the rest of the habitat.
No one can hear us.
Is that you, Dr.
Jansen? Yes, M.
I.
R.
A.
What are you doing on Mars, Doctor? I came to talk to you.
You remember Detective Beckett and Richard Castle? Of course.
How can I help you? Are we seriously about to interrogate a computer? Detective, the word "interrogate" implies you believe I am guilty of something.
Of what do you think I am guilty? Well, at least she's not asking for a lawyer.
Uh, M.
I.
R.
A.
, we'd like to know where the rover was when Tom Richwood was killed.
I already gave you that information, Detective.
The rover was docked.
M.
I.
R.
A.
, we know the rover wasn't docked.
How do you know? We have photographs.
Evidence.
Your evidence is incorrect.
The rover was docked.
M.
I.
R.
A.
, prior to Tom's death, did someone instruct you to activate the rover? She's drawing more power.
Something's wrong.
No.
The rover wasn't activated.
The rover was docked.
Is it possible someone could've altered her memory? No one altered my memory, Mr.
Castle.
My memory is perfect.
Her memory core was designed to be a closed system.
It can't be altered.
But something's off.
M.
I.
R.
A.
, run a level-one diagnostic on all systems.
There is no need to run a diagnostic.
All systems are optimal.
How about we run it anyway? I'm sorry.
I can't do that.
Why not? It violates my operational parameters.
It's a simple diagnostic.
What parameter does it violate? It will compromise the mission.
How will a diagnostic compromise the mission? Answering that question will compromise the mission.
I don't understand.
I think I do.
She knows she's lying to us.
And if she runs those diagnostics, we'll discover the truth.
And that truth will somehow put the mission at risk.
She's a machine.
She can't lie.
You said that she's programmed to learn.
What if somebody taught her how? What if someone used her to kill, and then to help cover up the crime? No, her core parameters can't be altered.
She's programmed to protect the mission and everyone on it.
But what if those operational parameters are in conflict with each other? What if someone she's programmed to protect is a threat to the mission? Um, M.
I.
R.
A.
, how would you classify Tom Richwood? Sergeant Major Tom Richwood, pilot, systems engineering specialist.
Okay.
Right, okay.
Deceased.
Was Tom a threat to the mission? Yes.
Why? Who told you Tom was a threat? I'm sorry.
I'm not authorized to give you that information.
Because in her mind, that information would be a threat to the mission.
There's got to be another way to find out.
There is.
I can reboot her.
Everything she's learned will be wiped.
But all recorded memory will stay intact.
We'll find out pretty quickly what happened.
What's that? Someone's opened the vents to the outside.
We're taking in atmosphere.
It's M.
I.
R.
A.
She's trying to protect herself.
No.
M.
I.
R.
A.
, don't shut me out! You said that this is harmful, but it wouldn't kill us, right? Short term.
Long term, it's deadly.
We have to get out of here.
It's locked.
Call for help! Communications are dead.
M.
I.
R.
A.
, open the door! Open the pod bay door.
I wanted to go to Mars, not die on Mars.
Wait a minute, we're not on Mars, we're on Earth.
Hello? Beckett? Are you saying that the computer tried to kill you? Yeah.
Just like in 2001.
Kubrick was right.
AI is a bad idea.
M.
I.
R.
A.
's not AI.
Yes, she can learn and adapt.
But she's a machine.
She cannot think for herself.
Then why'd she try to kill us? It wasn't M.
I.
R.
A.
We just pulled apart the server.
Someone embedded a subroutine into the OS reset program.
The moment that you tried to reboot her, that subroutine activated, trapping you guys inside.
It also triggered a dump of M.
I.
R.
A.
's memory circuits.
All the mission data is gone.
So this was a failsafe installed by whoever was behind this.
We were never meant to find out about the rover, or M.
I.
R.
A.
, and on the off chance that we did, the killer wanted to make sure we didn't get any further.
By killing the only witness.
M.
I.
R.
A.
and her memory banks.
It has to be one of the astronauts.
They're the only ones who could've planted that subroutine.
The only ones who could've convinced M.
I.
R.
A.
that Tom was a threat.
Yeah, but with the memory data unrecoverable, it's impossible to know which one.
No.
Not impossible.
As a matter of fact, there's only one explanation that makes sense.
You can't be serious.
You think one of us is the killer? And it was almost the perfect crime.
All the mastermind needed was someone to pin it on, and that's where Mikhail came in.
The killer must've found out that Mikhail was selling secrets, which made him the perfect patsy.
All they had to do was make sure that Mikhail was unaccounted for during Tom's murder.
That and plant the weapon at his drop-off point.
Killing two birds with one stone.
Tom, who everybody hated, and Mikhail, who was selling secrets.
So they sent Mikhail to engineering, where he would be blind to everything that happened.
Only, he didn't stay there.
Instead, he went to life support, where, with one photo, he exposed everything.
Commander Kim, it was you who sent Mikhail to engineering during the repair, wasn't it? Yes, though there's nothing unusual about that.
No, but according to procedure, isn't Angela supposed to be there backing him up? Yes, but I needed her up here checking protocols.
That hardly makes me a murderer.
And I never even left the module, so I couldn't have planted the murder weapon in the tunnel.
No, but Dr.
Haroun and Angela could've done that.
The two of you were outside together for 10 minutes.
Yes, checking on Tom and restoring power.
While all the cameras were down.
Giving you enough time to ditch the murder weapon and clean any forensic evidence off the rover.
That's ridiculous.
Are you just gonna go after us one by one? I was with Rusham the whole time.
He didn't go anywhere near the rover.
And neither did Angela.
And that's what makes this crime so clever.
From the beginning, the three of you have been able to alibi each other out.
Because you were all in on it together.
It would've taken the three of you colluding to convince M.
I.
R.
A.
That Tom was threatening the mission.
And given the way that you felt about Tom, you knew that the team couldn't survive with him on it.
He was a threat.
Especially on a hostile planet.
So, after six months of being locked up in this tin can together, you decided that rather than sacrifice your chance at being the first human beings to stand on Mars, you would put your shot at immortality ahead of another man's life.
That's a fascinating theory, but with M.
I.
R.
A.
's memory gone, you have no proof.
You know, that's what we thought as well.
Until Dr.
Jansen told us about M.
I.
R.
A.
's black box.
In the event of a catastrophic failure, she pulses all her data to the nearest satellite.
All your conversations with her, everything you three did, it's all there.
So the bad news is, none of you are going to Mars.
Good news is, the first one to cooperate will get the least amount of jail time.
I just didn't expect them to cave that quickly.
That was a clever ruse, Castle.
I'm just glad it worked.
And if there's not a catastrophic black box satellite, there should be.
What do you think is gonna happen with Jansen? Well, he's a pioneer, he's a visionary.
He may not get there in 2018, but I'm willing to bet that he's gonna be the first.
So, after all of this, you still wanna go to Mars? Oh, of course.
But I think I'm gonna wait until they have first-class service, so we can go together.
Oh.
Do you think at any point one of those astronauts turned to the others and said, "Maybe killing Tom is a really bad idea"? I think that when people are stuck together in a small space for a long period of time, they lose perspective.
Speaking of which, um, wasn't there supposed to be a family meeting tonight? There is.
I told Alexis she did not need to come, because I wanted to talk to the two of you alone.
Now, I know that things have been a little frenetic around here.
What with Alexis and her friends and the two of you in and out at all sorts of odd hours.
And You and your new boyfriend doing late-night medleys.
Well, yes, that.
So I have decided, and I don't wanna upset either one of you, that I am going to look for a place of my own.
To live? Well, yes.
I mean, not right away, of course.
I mean, it's gonna take me a while to find exactly the right space.
Mother, I was just calling a family meeting.
I didn't intend for you to move out.
Darling, this is not about you, this is about me.
Think of it as a kind of evolution, you know? I'm starting to do very well for myself, and I am guessing that, uh, before too long, there's gonna be a few more little Castles creating havoc around here.
And then I think the two of you deserve to have this place to yourselves.
Let me know if there's anything I can do.
Oh I will.
Okay, I am off! I'm spending the evening with Benjamin.
So don't wait up.
Bye.
I did not expect that.
Unexpected is her specialty.
It's so quiet.
It's really, really quiet.
Maybe we should go out.
There's a great Indian restaurant that just opened up around the corner.
Fantastic atmosphere.
It's loud.
Super loud.
Lot of people.
Lots and lots of people.
Except without the water, or the hot girls in bikinis, or the air.
What I wouldn't give for a hot girl.
Hell, after all this time, I'd even take an ugly one.
Assuming she came with a paper bag.
Oh, real classy, Richwood.
Just repair the short and make sure the 4-B coil isn't fried.
We can't afford to have the power grid compromised.
Aye, aye, Captain.
Oh, boy! Bad news.
It's charred.
I may have to replace the power coupling and reboot A-level systems Didn't read that, Richwood.
Interference.
Come again? Watch out! Tom? Tom! Oh! Yes! I can't wait to take off my Got ya! shoes.
Dad! Beckett.
So much for a quiet evening at home.
I thought you guys were working late tonight.
Slow murder day.
We got off early.
You're playing laser tag? Without me? Is that my gear? Oh, Dad, Beckett, this is David.
He bet me I couldn't beat him.
She trounced you, didn't she? Yeah.
Oh, my! What is going on down here? Far too much, apparently.
Uh, are those my pajamas? Uh Oh, oh, oh, oh.
I'm so sorry.
Ben Um, family, Benjamin.
Ben, meet my family.
Castle, we got a murder.
Uh, to solve, not to commit.
Bye! But those were my softest pajamas, and now I'm gonna have to burn 'em.
Is it just me, or is the loft getting awfully small these days? Well, four adults together in one space.
We're bound to step on each other's toes.
Yeah.
Well, there was a lot more toes than usual tonight.
Hey, guys.
Glad you're here.
You're gonna wanna see this.
Especially you, Castle.
What is this place? It's Mission Control.
And that's Mars! And there's your body.
Our victim is on Mars? The secret manned mission to Mars rumors were true.
I knew it! You know, this might be a little out of our jurisdiction.
It's not Mars.
This is Operations Director Ed Redley.
This is Detectives Beckett and Ryan.
Castle.
Uh, what you're seeing is a live feed from a simulation we're conducting in advance of a real Mars mission.
Who's "we"? NASA? It's the Mars 2018 Project.
We're privately funded.
Yes, by Viggo Jansen, the Internet billionaire.
He promised to put humans on Mars by 2018.
Held a competition and everything.
I signed up for the program, but I didn't get in.
Wait.
You signed up to go to Mars? When? A couple years ago.
Where was I? We were fighting.
The victim, pilot Tom Richwood, was supposedly alone on the, uh, planet's surface conducting repairs.
We were in a communication blackout, part of simulating planetary conditions, when the mission commander broke protocol to tell us they found Tom dead.
They don't think it was an accident.
Well, I'd like to see the body.
So, where is the simulation? Couple of floors below us, and that's easier said than done.
In order to mimic conditions on Mars as well as discourage any cheating, the simulation is filled with noxious gas.
Hey, it won't kill you, but it will induce severe nausea, and a rash.
It would take several days to vent the sim to make the air breathable, so if you wanna go in, you're going to need to wear spacesuits.
Best case ever! Castle This way? Yeah.
Okay, great.
What can you tell us about the victim? Well, Tom Richwood was the mission pilot.
Former Navy Top Gun, did a tour with NASA.
What about family? None.
Which made him the perfect candidate for the mission.
He beat out some of the smartest, most competitive candidates in the world to be a part of the first manned team to Mars.
They all did.
Who else is inside? Our four remaining astronauts.
The team's medical specialist, Dr.
Haroun, is waiting for you.
So has anyone been in or out of the simulation recently? No.
It's a sealed No one's been in or out since the astronauts entered six months ago.
Which means one of them probably did it.
Yeah.
There's only three suits.
Um, that's okay.
We don't all need to go in.
I'll go take statements back at the facility.
Seriously? You don't want to go to Mars? A, it's actually not Mars, and B, I'm happy here on Earth.
But have fun, Castle.
Trust me, I will.
- Are you done? - No.
Finally made it to Mars! Didn't even have to go to astronaut training.
So you really signed up to go to Mars, huh? Wouldn't that be cool? I mean, not so much for you.
But for me? Mmm-hmm.
Detectives? I'm Dr.
Rusham Haroun, the bio-science officer.
He's over here.
And nobody saw this happen? No, we were all in the module.
We heard him scream.
He must have fallen into the coupling coil, because right then, the power went out.
By the time Angela and I got out here, he was gone.
It took us another 10 minutes to get the power restored.
It looks like a stab wound.
Delivered with a lot of force.
Well, where's the murder weapon? There wasn't one.
But one of his tools, his screwdriver, is missing.
It looks like this.
It's pretty rocky around here.
There's no footprints.
And since the killer was probably wearing a suit, there's not gonna be any DNA.
Let's get his body to the morgue and find out.
And get CSU down here.
I want this place searched.
If no one's been in or out, then that murder weapon is still inside here.
Dr.
Haroun, I'd like to speak to the other astronauts, please.
They're inside.
Follow me.
One small murder for man.
One giant mystery for mankind.
Even when you whisper, everyone can hear you.
I may need to replace the power coupling and reboot A-level systems - Didn't read that, Richwood.
- Interference.
Come again? Watch out! You know the rest.
And where were each one of you when this happened? Angela, Rusham and I were here, in the command module.
Mikhail was over in engineering.
And is there access to the outside from engineering? There is emergency hatch, but if I had gone through it, the alarm would have sounded.
Plus, as part of the program, we're all closely monitored.
In case we lose consciousness or there's a suit malfunction on an EVA.
We all have trackers under our skin.
And M.
I.
R.
A.
keeps a record of all our movements.
Who's Mira? That's what we call the mission computer.
Well, I'd like to take a look at those records.
I will be happy to provide you with any records you require, Detective Beckett.
It talks? Yeah.
We think of her as the sixth member of the crew.
Isn't that a little 2001? She is programmed to learn and adapt, but she's more Siri than HAL.
Ask her where you are.
M.
I.
R.
A.
, where are we? You are aboard the vessel Tenzing Norgay in the northern lowlands of Mars.
She actually thinks she's on Mars.
Regardless, I'm gonna need to ask all of you to join me at the precinct so I can interview you properly.
That could be a problem.
I'm sorry, Detective, I can't let you remove the astronauts.
I don't have that kind of authority.
Well, then who does? That would be me.
And my astronauts aren't going anywhere.
That's Viggo Jansen! The Viggo Jansen.
Detective, if we shut down now, we will lose months of priceless data.
Millions of dollars' worth of experiments will be compromised.
We'll lose half a year, and we don't have that time.
Mr.
Jansen, it's not a request.
A man has been murdered, I need to conduct an investigation.
And I will do everything in my power to help you, short of shutting down my sim.
Mars is our generation's space race, and my team's gonna be first, not the Chinese, or Mars One, or that puffed-up movie producer, Sir Ian Rasher.
I could get a court order to compel you.
And with my legal team, it'll take you months.
Or we could work together.
I give you all the access you need, and my simulation keeps running.
Fine.
For now.
But if I find out any of those people are responsible, you won't stop me from removing them.
Yeah.
Well, according to this tracking data, none of them seem responsible.
They were all exactly where they said they were at Tom's approximate time of death.
It even confirms that the mission's rover was still parked at the habitat at the time of the incident.
Well, there goes my Rise of the Machines theory.
Okay, so if all the people inside are accounted for, then our killer must have come from outside of the simulation.
We would know.
The airlock door is the only way in or out.
It's alarmed and monitored.
Uh, excuse me.
Detective Beckett, there's a message coming in for you from the habitat.
I can put it on the monitor if you like.
Yeah, please.
Hey, Espo, what do you got? I was just going through our victim's video diaries.
There's something you need to see.
Six months in, and I know part of this mission is a psych experiment.
Maybe the close quarters are starting to get to me, but I think I'm starting to see things.
When I was out there today, I could've sworn I saw someone, and it's not the first time.
I know it's not possible, but I don't think we're alone.
Hang tight.
I may have some more questions.
Go ahead, Espo.
Hey, so I just finished talking to the other astronauts.
None of them seem to have any idea what Tom was talking about.
All right, thanks, Espo.
The CSU just finished their initial sweep.
There's no one else in that simulation.
It's possible Tom was seeing things.
All our tests show that being locked in a confined space with others can play tricks on your mind.
Only, delusions don't kill.
And if what Tom said was true, then whoever killed him might have been able to get in and out undetected.
I told you, Detective, given our security, that's impossible.
Sir.
Maybe not.
At Detective Ryan's request, I ran a check on all our security systems.
Everything looked normal until I got into the deep code.
See that? Oh, God.
What is it? Our security system's been hacked.
Key cards, alarm codes Meaning someone could have broken into the simulation.
Based on our backup files, these changes were made two days ago.
Sometime between Digital tracing indicates we were breached from the outside.
Someone broke through our firewall.
Can you tell who? We log every IP address that connects to the mainframe.
I'm running a trace now for that time window.
There.
Third one down.
I don't recognize that one.
All right.
We should be able to trace it.
Don't bother.
I just did.
It's coming from a residential Wi-Fi.
Registered to a You gotta be kidding me.
Who is it? Clint Granger.
Hothead pilot.
He was one of our applicants until he was kicked out of the program.
Why'd he get kicked out? He accused Tom of sabotaging him during candidate testing.
Claimed it cost him the pilot's spot.
So he tried to run Tom over in the parking lot.
And when was this? Seven months ago.
But he did say he'd be back to finish the job.
Yeah, I was pissed.
I'm still pissed.
He slipped something into my drink before the final round.
Slowed my reaction time.
So you tried to run him over with your car? It should have been me on that mission, not him.
He stole my spot in history.
And you ask me? He got what he deserved.
But I did not kill him.
And yet we traced that cyber-attack to your apartment.
I am a pilot, not a computer geek.
I couldn't rewrite that code if the mission depended on it.
You could've hired someone.
Yeah, but I didn't.
Look, when Tom was getting himself murdered, I was at dinner with a friend in Connecticut.
And when that hack took place from my Wi-Fi, I wasn't even in the country.
Someone's setting me up.
Granger's alibi checks out.
He was at dinner with a friend when Tom Richwood was killed.
What about the night the hack took place? Granger was visiting his brother in Nova Scotia.
It wasn't him.
Mars, Nova Scotia.
This guy really loves barren landscapes.
Come on, Ryan.
You're telling me you have no desire to go to Mars? I prefer my oxygen without a can.
Where's your sense of adventure? Of exploration? Of destiny? If I wanted to fly thousands of miles to see a lifeless orb, I could just visit Jenny's grandmother.
Same hostile environment.
Same freezing temperatures.
Same noxious atmosphere Huh.
Huh? "Huh," what? This is a video of Granger's apartment lobby the night of the hack.
Check it out.
This guy enters the building at 11:05 p.
m.
, just before the hack took place.
Now watch Fifteen minutes later He leaves the building.
He could have piggybacked on Granger's wireless, and used that to carry out the attack on the simulation security.
Yeah, but who is he? Name's George Reyes.
The folks down at Mars 2018 recognized him immediately.
He's the senior facilities engineer, and he called in sick yesterday.
Nobody's been able to reach him since.
Did he have a motive to break into the simulation and kill Tom? Not that anyone knew.
But his colleagues say that he's been acting secretive for the last couple of days, ever since receiving a private communique from his wife.
What has his wife got to do with this? Maybe everything.
Ask me who his wife is.
Who's his wife? Angela Olvera.
One of the other astronauts.
So what was on the message? I was letting George know that I wanted out of our marriage.
You broke up with him from space? He was sending me all these sweet e-mails.
I couldn't let it go on.
I had to tell him that I had fallen for someone else.
Someone on the mission.
Was it Tom? No.
Not Tom.
Oh, God.
What? Angela? I didn't say who it was in my letter.
Maybe he thought it was Tom.
Well, did he have reason to? Yeah, he did.
Tom wouldn't stop hitting on me all through training.
George told him if he didn't stop, he'd make him pay.
Yo, I found him.
He's at the airport.
Just bought a ticket to San Francisco.
Airport security just picked him up.
We were a team, Angela and me.
We were gonna go to Mars together or not at all.
But when she got in and I didn't, I couldn't stand in her way.
Hard enough to have her leave the planet, but to leave you for someone else? You must've been devastated.
Try utterly destroyed.
Is that why you hacked security? In order to break into the simulation, and kill the man that you thought was Angela's lover? I'm telling you, I had nothing to do with Tom's death.
I was going to sabotage the mission.
I figured if the simulation suffered a catastrophic failure, it'd set the program back, and Angela would come home to me.
But I chickened out.
The hacks, setting it up to lead back to Granger, that's as far as I got.
I never went inside, and I sure as hell didn't kill anyone.
Then why were you leaving town? She dumped me.
How was I supposed to keep going to work there? I needed a fresh start.
And since I got her letter, I've spent nights drowning my sorrows at O'Malley's.
That's where I was when Tom was murdered.
You can ask them.
Okay.
Then, so who else could've used your hack to get through the simulation's airlock? It was calibrated to my biometrics.
No one else could've used it.
- But someone did.
- No.
If they got in, they did it some other way.
There is no other way.
I'm not so sure about that.
What do you mean? I studied the facility plans.
The simulation is like a bank vault.
To get in, you gotta get past guards, security systems, cameras.
But like a bank vault, if you're motivated enough, there's always another way in.
You really think someone could have tunneled their way into the sim? No, but since George's alibi checked out, we're gonna have to look at all of our options.
Including the unlikely ones.
According to George's map, this abandoned utility access runs directly under Jansen's facility.
Yeah, but who would hate Tom enough to tunnel through five feet of concrete to kill him? I don't know, but But it looks like someone did.
Castle, boost me up.
Why am I always on the bottom? Yes, dear.
Planets, dank access ways.
Is it just me, or does this remind you of Alien? I know that you want this to be science fiction, but we are not in space.
No! But wouldn't you like it to be? Come on.
You're a sci-fi geek.
Wouldn't you just love to go to Mars? Of course, I would.
That's why I applied to Ian Rasher's program last year.
Wait, what? You applied to go to Mars? Without me? When? Well, we were fighting.
Oh, okay.
Well, I deserved that.
Oh, jeez.
Castle.
See anything? Someone did tunnel up.
Castle, I think I found the murder weapon.
Do you hear that? Whoa.
Hear what? Oh, whoa! What happened? Something is down here.
Something? What the hell is that? Told you this felt like Alien.
Castle, stop.
This is not Alien.
Did that look human to you? Actually, no.
Right.
See, I'm betting it's a Xenomorph stranded here on Earth.
Attracted to the simulation because it needs the toxic environment.
Probably saw Tom as encroaching on its territory and killed him for it.
What What are you doing? I'm checking you for bites and scratches.
Making sure you didn't somehow get impregnated.
If you think that's how I'd get pregnant, we need to talk.
There! Beckett! It shed its skin! It's not skin.
It's a gas mask.
And that's a breathing hose.
For a human.
To protect themselves from the fumes of the simulation.
Someone was trying to break in.
Yes, this was the access point.
Why would someone tunnel into my simulation? Well, maybe it's one of your competitors.
It could be espionage, or sabotage.
And our victim might have found out, and threatened to expose them.
Either way, this explains what he saw.
Why he thought there was someone else in there with them.
How did they elude my cameras? Well, maybe they were working with someone that was involved in your program, and knew when the cameras would be blacked out.
Excuse me.
Beckett.
Hey, so CSU just confirmed it.
The blood on the screwdriver belonged to Tom.
It's our murder weapon.
Okay, any prints? No, but since the killer was in the simulation Then they would've been wearing gloves.
Um, okay.
What about the gas mask? Anything from that? It looks military, but we're still trying to run it down.
Meantime, Ryan's pulling camera footage from the surrounding area.
Maybe we'll get lucky, catch our alien exiting one of the access points to the utility tunnel.
Probably won't know anything till morning.
All right, keep me apprised.
Okay, why don't you think about anyone that would've wanted to breach your simulation and we'll keep you posted on what we find.
Yeah.
Oh, my God.
What a day.
I feel like I'm still covered in spiderwebs.
I cannot wait to take a hot shower.
Oh, maybe I could, uh, join you.
Ooh, that'd be nice.
We could relax, have a glass of wine and Do you hear that? It's your mom.
And Ben.
And Alexis is here.
With friends.
What did I tell you! Maybe we could go to a hotel.
And yet you think you could survive being stuck in a space capsule with four other people for a year.
I could if you were one of those people.
Oh.
Wow, you guys! Get a room! We would, if there were any left.
Maybe you shouldn't have been so quick to sublet your place.
You know, maybe we could just set up a schedule.
Or they could give us a heads-up and let us know what to expect when we get home.
I'm gonna call a family meeting.
Or we could just go to Mars.
Yeah.
I don't think you'd be happy there.
There's no showers, there's instant coffee and you have to bag your own Hey, Castles.
Hey, any luck on that security cam footage? Nada, your alien must have accessed the underground where there wasn't any coverage.
But we did have better luck with that gas mask.
CSU was able to pull exhaled breath condensate from inside the face plate.
It contained trace amounts of DNA.
We get a match in the system? Not our system.
But as part of the Mars 2018 program, every applicant had to submit sample DNA.
So we ran it against that database, and guess who popped up? No! Granger's our alien? So he was getting in and out, just not the way we thought.
Which means his alibi was a lie.
As soon as he knew we were onto him He went back to destroy the evidence.
You bringing him in? I would, if we could find him.
But he's not at his place and he's not answering his phone.
Okay, put out an APB.
After our encounter in the dark, he might be on the run.
I may know how to find him.
That gas mask, it's an uncommon make.
Not a lot of suppliers in the city carry them.
But I was able to track down the serial number to an Army-Navy supply store uptown.
Did they confirm that Granger bought it? No, the mask was purchased a couple of months back, so no one remembered the buyer, but it was charged to a corporate account.
A company called Newton Endeavors.
What do we know about them? Not much.
I couldn't find anything on the Web, but I was able to track down an address out in Queens, in Willets Point.
Well done.
Newton Endeavors.
Sounds space-related.
Space, the final frontier.
These are the voyages of Castle and Beckett.
Their ongoing mission to explore strange new motives.
To seek out new witnesses and new suspects for murder.
- To boldly go where - Oh, right over here.
Excuse me? Is this Newton Endeavors? I'm sorry.
This is private property.
I'm gonna have to ask you to leave.
NYPD.
I'm gonna have to ask you to open that door.
What the hell? Is it just me, or does that capsule look incredibly familiar? Who would wanna build a replica of Jansen's Mars colony? The competition.
Granger must've been breaking into the sim to steal technology for Jansen's competitors.
I don't care if we have to pay them triple.
We cannot fall any further behind! And I think I know which one.
Yep.
All right.
Sir Ian Rasher.
Billionaire, playboy, adventurer.
And possible accessory to murder.
You may wanna rethink your application to his program.
All right.
Good, good.
Mr.
Rasher? Detective Beckett, NYPD.
I was wondering if we could have a word.
Of course.
What can I do for New York's finest? Well, you could start by telling me where Clint Granger is.
I'm sorry, Detective.
I'm afraid I don't know who that is.
Are you sure? Because, looking around, I'm guessing he's the guy that you hired to steal Viggo Jansen's plans for the Mars simulation.
Detective, I employ the world's best engineers.
Why would I bother wasting my time on my competitor's technology? Maybe because you're falling behind them? It's no secret your last two rocket launches were spectacular failures.
You wanna win, so you needed to buy a competitive advantage.
And after one of Jansen's team members discovered what you were up to, a man with your reputation and knighthood, you had no choice but to have him killed.
Killed? Who was killed? One of Jansen's astronauts.
Tom Richwood.
I had nothing to do with that.
Well, the best way to convince me of that is to tell me where Granger is.
Unless you prefer prison.
Okay, yeah.
I was spying for Sir Ian.
He promised me the pilot's slot on his mission if I did.
But I was telling the truth about Tom.
I didn't kill him.
I have an alibi, remember? Alibis can be bought.
We found your DNA on the gas mask.
We know it was you in the access way.
Because I didn't want it to look like I had anything to do with this.
I went to make sure that I hadn't left anything there that could point back to me.
Like the murder weapon? Oh, come on, if I killed Tom, do you really think I'd be stupid enough to leave the murder weapon there? Besides, I was never inside the simulation.
That would've been way too risky.
Too many opportunities to get caught.
Then why the gas mask? It was a precaution.
I wasn't using the tunnel to get in.
It was a drop point.
You were working with someone on the inside.
I needed access, he needed money.
So we struck a deal.
He'd download schematics and plans and drop them for me in the tunnel.
Who? Mikhail Dankov.
The astronaut? If Tom was onto him, then maybe he's your killer.
We checked his tracker.
He was inside the habitat at the time of the murder.
Mikhail knew if his movements were being recorded, he'd never get away with what we were doing.
So he beat the system.
He cloned his tracker before they embedded it under his skin.
As long as no one was looking, he could slip out at any time.
Mikhail? Yes? I'd like a few words with you.
What about? Your business relationship with Clint Granger.
Hey! Hey! Come on, Mikhail, you're crazy.
Bro, where you gonna run? You're on Mars.
I hate to admit, but it's good to be out.
Go ahead.
What they say? Fresh air, Times Square? Well, after the Mars simulation, prison should be a breeze.
So I was trading information.
Big deal.
I was leaving the planet and never coming back.
I wanted to make sure my family was taken care of.
Oh, noble.
You Americans.
Little corruption never hurt anyone.
I don't think Tom would agree.
Tom? Tom was jackass.
Drove everyone crazy the way he doled out food and supplies and tried to leverage everyone for making even tiniest error.
Trust me, they may be scared to say it, but no one's sad he's dead.
No one was looking forward to spending rest of lives with him on other planet.
And yet, you are the only one that is unaccounted for during his murder, which means you are the only one that could've killed him.
Mmm, no, I could not.
I can prove where I was during the murder.
How? When Commander Kim sent me down to engineering, I used rare time alone to take pictures and download schematics from life support, to give to Granger.
I still have the drive with all of my photos.
They're time-stamped with the mission clock.
So your alibi is that you were spying for Granger? Go.
Look at my photos.
You'll see.
So, I went through all of Mikhail's photos from the night Tom was murdered.
As you can see, he's telling the truth.
See his reflection? Yeah.
And the module clock confirms the time.
Maybe he faked the time.
Or maybe it was Granger after all.
It wasn't Granger.
Uh, Ryan, go back.
To There! Now, zoom in on the window.
Look down on the bottom right.
Is that the rover? I thought the computer said that it was docked during the murder.
Clearly, the computer was wrong.
Now, uh, push in on the rover's arm, and filter out some of that reflection.
It's the screwdriver! There's your killer, holding the murder weapon.
The rover did it! The rover was out? This can't be right.
All the data from M.
I.
R.
A.
indicates that the rover was docked when Tom was killed.
I'd say the data's wrong.
And according to your literature, that rover has the speed and dexterity to kill with mathematical precision.
Mr.
Jansen, who has access to the rover controls? One of your astronauts? Someone at mission control? No one has access.
The rover is an extremely complex piece of equipment.
Under human control, there's too high a margin for error, so we designed it to interface solely with the computer.
Our astronauts describe the sort of task they want carried out and M.
I.
R.
A.
executes it.
Is it possible someone could've asked her to kill Tom? M.
I.
R.
A.
wouldn't comply with that sort of command.
But something's wrong.
I need to talk to her.
Well, is there somewhere we can do that privately, without anyone hearing? Yeah.
The computer module pod, inside the sim.
What's going on? Let you know soon.
In here.
There.
I've cut off communications with the rest of the habitat.
No one can hear us.
Is that you, Dr.
Jansen? Yes, M.
I.
R.
A.
What are you doing on Mars, Doctor? I came to talk to you.
You remember Detective Beckett and Richard Castle? Of course.
How can I help you? Are we seriously about to interrogate a computer? Detective, the word "interrogate" implies you believe I am guilty of something.
Of what do you think I am guilty? Well, at least she's not asking for a lawyer.
Uh, M.
I.
R.
A.
, we'd like to know where the rover was when Tom Richwood was killed.
I already gave you that information, Detective.
The rover was docked.
M.
I.
R.
A.
, we know the rover wasn't docked.
How do you know? We have photographs.
Evidence.
Your evidence is incorrect.
The rover was docked.
M.
I.
R.
A.
, prior to Tom's death, did someone instruct you to activate the rover? She's drawing more power.
Something's wrong.
No.
The rover wasn't activated.
The rover was docked.
Is it possible someone could've altered her memory? No one altered my memory, Mr.
Castle.
My memory is perfect.
Her memory core was designed to be a closed system.
It can't be altered.
But something's off.
M.
I.
R.
A.
, run a level-one diagnostic on all systems.
There is no need to run a diagnostic.
All systems are optimal.
How about we run it anyway? I'm sorry.
I can't do that.
Why not? It violates my operational parameters.
It's a simple diagnostic.
What parameter does it violate? It will compromise the mission.
How will a diagnostic compromise the mission? Answering that question will compromise the mission.
I don't understand.
I think I do.
She knows she's lying to us.
And if she runs those diagnostics, we'll discover the truth.
And that truth will somehow put the mission at risk.
She's a machine.
She can't lie.
You said that she's programmed to learn.
What if somebody taught her how? What if someone used her to kill, and then to help cover up the crime? No, her core parameters can't be altered.
She's programmed to protect the mission and everyone on it.
But what if those operational parameters are in conflict with each other? What if someone she's programmed to protect is a threat to the mission? Um, M.
I.
R.
A.
, how would you classify Tom Richwood? Sergeant Major Tom Richwood, pilot, systems engineering specialist.
Okay.
Right, okay.
Deceased.
Was Tom a threat to the mission? Yes.
Why? Who told you Tom was a threat? I'm sorry.
I'm not authorized to give you that information.
Because in her mind, that information would be a threat to the mission.
There's got to be another way to find out.
There is.
I can reboot her.
Everything she's learned will be wiped.
But all recorded memory will stay intact.
We'll find out pretty quickly what happened.
What's that? Someone's opened the vents to the outside.
We're taking in atmosphere.
It's M.
I.
R.
A.
She's trying to protect herself.
No.
M.
I.
R.
A.
, don't shut me out! You said that this is harmful, but it wouldn't kill us, right? Short term.
Long term, it's deadly.
We have to get out of here.
It's locked.
Call for help! Communications are dead.
M.
I.
R.
A.
, open the door! Open the pod bay door.
I wanted to go to Mars, not die on Mars.
Wait a minute, we're not on Mars, we're on Earth.
Hello? Beckett? Are you saying that the computer tried to kill you? Yeah.
Just like in 2001.
Kubrick was right.
AI is a bad idea.
M.
I.
R.
A.
's not AI.
Yes, she can learn and adapt.
But she's a machine.
She cannot think for herself.
Then why'd she try to kill us? It wasn't M.
I.
R.
A.
We just pulled apart the server.
Someone embedded a subroutine into the OS reset program.
The moment that you tried to reboot her, that subroutine activated, trapping you guys inside.
It also triggered a dump of M.
I.
R.
A.
's memory circuits.
All the mission data is gone.
So this was a failsafe installed by whoever was behind this.
We were never meant to find out about the rover, or M.
I.
R.
A.
, and on the off chance that we did, the killer wanted to make sure we didn't get any further.
By killing the only witness.
M.
I.
R.
A.
and her memory banks.
It has to be one of the astronauts.
They're the only ones who could've planted that subroutine.
The only ones who could've convinced M.
I.
R.
A.
that Tom was a threat.
Yeah, but with the memory data unrecoverable, it's impossible to know which one.
No.
Not impossible.
As a matter of fact, there's only one explanation that makes sense.
You can't be serious.
You think one of us is the killer? And it was almost the perfect crime.
All the mastermind needed was someone to pin it on, and that's where Mikhail came in.
The killer must've found out that Mikhail was selling secrets, which made him the perfect patsy.
All they had to do was make sure that Mikhail was unaccounted for during Tom's murder.
That and plant the weapon at his drop-off point.
Killing two birds with one stone.
Tom, who everybody hated, and Mikhail, who was selling secrets.
So they sent Mikhail to engineering, where he would be blind to everything that happened.
Only, he didn't stay there.
Instead, he went to life support, where, with one photo, he exposed everything.
Commander Kim, it was you who sent Mikhail to engineering during the repair, wasn't it? Yes, though there's nothing unusual about that.
No, but according to procedure, isn't Angela supposed to be there backing him up? Yes, but I needed her up here checking protocols.
That hardly makes me a murderer.
And I never even left the module, so I couldn't have planted the murder weapon in the tunnel.
No, but Dr.
Haroun and Angela could've done that.
The two of you were outside together for 10 minutes.
Yes, checking on Tom and restoring power.
While all the cameras were down.
Giving you enough time to ditch the murder weapon and clean any forensic evidence off the rover.
That's ridiculous.
Are you just gonna go after us one by one? I was with Rusham the whole time.
He didn't go anywhere near the rover.
And neither did Angela.
And that's what makes this crime so clever.
From the beginning, the three of you have been able to alibi each other out.
Because you were all in on it together.
It would've taken the three of you colluding to convince M.
I.
R.
A.
That Tom was threatening the mission.
And given the way that you felt about Tom, you knew that the team couldn't survive with him on it.
He was a threat.
Especially on a hostile planet.
So, after six months of being locked up in this tin can together, you decided that rather than sacrifice your chance at being the first human beings to stand on Mars, you would put your shot at immortality ahead of another man's life.
That's a fascinating theory, but with M.
I.
R.
A.
's memory gone, you have no proof.
You know, that's what we thought as well.
Until Dr.
Jansen told us about M.
I.
R.
A.
's black box.
In the event of a catastrophic failure, she pulses all her data to the nearest satellite.
All your conversations with her, everything you three did, it's all there.
So the bad news is, none of you are going to Mars.
Good news is, the first one to cooperate will get the least amount of jail time.
I just didn't expect them to cave that quickly.
That was a clever ruse, Castle.
I'm just glad it worked.
And if there's not a catastrophic black box satellite, there should be.
What do you think is gonna happen with Jansen? Well, he's a pioneer, he's a visionary.
He may not get there in 2018, but I'm willing to bet that he's gonna be the first.
So, after all of this, you still wanna go to Mars? Oh, of course.
But I think I'm gonna wait until they have first-class service, so we can go together.
Oh.
Do you think at any point one of those astronauts turned to the others and said, "Maybe killing Tom is a really bad idea"? I think that when people are stuck together in a small space for a long period of time, they lose perspective.
Speaking of which, um, wasn't there supposed to be a family meeting tonight? There is.
I told Alexis she did not need to come, because I wanted to talk to the two of you alone.
Now, I know that things have been a little frenetic around here.
What with Alexis and her friends and the two of you in and out at all sorts of odd hours.
And You and your new boyfriend doing late-night medleys.
Well, yes, that.
So I have decided, and I don't wanna upset either one of you, that I am going to look for a place of my own.
To live? Well, yes.
I mean, not right away, of course.
I mean, it's gonna take me a while to find exactly the right space.
Mother, I was just calling a family meeting.
I didn't intend for you to move out.
Darling, this is not about you, this is about me.
Think of it as a kind of evolution, you know? I'm starting to do very well for myself, and I am guessing that, uh, before too long, there's gonna be a few more little Castles creating havoc around here.
And then I think the two of you deserve to have this place to yourselves.
Let me know if there's anything I can do.
Oh I will.
Okay, I am off! I'm spending the evening with Benjamin.
So don't wait up.
Bye.
I did not expect that.
Unexpected is her specialty.
It's so quiet.
It's really, really quiet.
Maybe we should go out.
There's a great Indian restaurant that just opened up around the corner.
Fantastic atmosphere.
It's loud.
Super loud.
Lot of people.
Lots and lots of people.