"Richwood:" "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." "Kim:" "Oh, real classy, richwood." "Just repair the short," "And make sure the four-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 [distorted] reboot a-level systems... [ static ]" "Didn't read that, richwood." "Interference." "Come again." "Watch out!" "Aaaaah!" "Tom?" "Tom!" "[ zapping ]" "[ laughs ]" "Oh!" "[ chuckles ] yes!" "I can't wait to take off my 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." "[ door closes ]" "She trounced you, didn't she?" "Yeah." "Martha:" "Oh, my," "What is going on down here?" "[ laughs ]" "Far too much, apparently." "Uh, are those my pajamas?" "Uh..." "Oh, oh, oh, oh." "[ cellphone chimes ]" "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 them." "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's a lot more toes than usual tonight." "Hey, guys." "Glad you're here." "You're gonna want to 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." "Esposito:" "It's not mars." "This is operations director ed redley." "This is detectives beckett and ryan." "Castle." "Redley:" "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?" "A 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." "Redley:" "Right, 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 want to go in," "You're gonna need to wear space suits." "Best case ever!" "[ chuckles ] this way?" "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." "[ beep ]" "So, has anyone been in or out of the simulation recently?" "No." "It's a sealed nine-month experiment." "No one's been in or out" "Since the astronauts entered six months ago." "Which means one of them probably did it." "Yeah." "[ chuckles ]" "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." "Castle:" "Trust me, i will." "[ richard strauss' "also sprach zarathustra" plays ]" "Are you done?" "No." "Finally made it to mars." "I 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." "Uh-huh." "Detectives?" "I'm dr." "Rusham haroun, the bioscience 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?" "Haroun:" "There wasn't one." "But one of his tools, his screwdriver, is missing." "It looks like this." "It's pretty rocky around here." "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." "[ castle sighs ]" "One small murder for man," "One giant mystery for mankind." "Even when you whisper, everyone can hear you." "Richwood:" "I may need to replace the power coupling" "And [distorted] reboot... [ static ]" "Kim:" "Didn't read that, richwood." "Interference." "Come again." "Richwood:" "Watch out!" "Aaaaah!" "You know the rest." "[ sighs ]" "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?" "[ russian accent ] 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 e.V.A.," "We all have trackers under our skin." "And m.I.R.A. Keeps a record of all our movements." "Who's m.I.R.A.?" "That's what we call the mission computer." "Well, i'd like to take a look at those records." "M.I.R.A.:" "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 h.A.L." "Ask her where you are." "M.I.R.A., where are we?" "You are aboard the vessel tensing 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." "Redley:" "I'm sorry, detective." "I can't let you remove the astronauts." "I don't have that kind of authority." "Well, then, who does?" "Viggo:" "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 can get a court order to compel you." "And with my legal team, it'll take you months." "Or we can 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." "Esposito:" "Hang tight." "I may have more questions." "[ keyboard clacking ]" "Beckett:" "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." "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." "Redley:" "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've broken into the simulation." "Based on our back-up files," "These changes were made two days ago," "Sometime between 11:10 and 11:14 at night." "Digital tracing indicates we were breached from the outside." "Someone broke through our firewall." "Can you tell who?" "We log every i.P. 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 got to 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" "And claimed it cost him the pilot 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." "Clint:" "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 want to fly thousands of miles to see a lifeless orb," "I can just visit jenny's grandmother." "Same hostile environment, same freezing temperatures," "Same noxious atmosphere." "Huh." "Huh? "huh," what?" "Well, 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." "15 minutes later." "He leaves the building." "He could've piggybacked on granger's wireless" "And used that to carry out the attack" "On the simulation security." "Yeah, but who is he?" "Esposito:" "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 the last couple of days," "Ever since receiving a private communiqué from his wife." "What does 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'd 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." "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." "We 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 have 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 would set the program back," "And angela would come home to me." "But i chickened out." "The hack," "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, ben." "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 got to 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've 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 5 feet of concrete to kill him?" "I don't know, but, uh..." "But it looks like someone did." "Castle, boost me up." "Why am i always on the bottom?" "Yes, dear." "Planets [sighs] 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 [straining] 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, geez, castle." "See anything?" "Someone did tunnel up." "Castle?" "I think i found the murder weapon." "[ hissing ] did you hear that?" "Whoa." "Hear what?" "[ hissing continues ]" "Oh, whoa!" "Aah!" "What happened?" "Something's down here." "Some thing?" "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." "It probably saw tom as encroaching on its territory" "And killed him for it." "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 get pregnant, we need to talk." "There!" "Beckett!" "It shed its skin." "It's not skin." "It's a gas mask." "It's a breathing hose." "For a human." "To protect themselves from the fumes of the simulation." "Someone was trying to break in." "[ whirring ]" "Haroun:" "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 him." "[ cellphone rings ] 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 if the killer was in the simulation..." "Then they would have 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 have wanted to breach your simulation," "And we'll keep you posted on what we find." "Yeah." "[ sighing ] oh, my god." "What a day." "I feel like i'm still covered in spider webs." "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 -- [ indistinct singing ]" "Do you hear that?" "[ muffled laughter ]" "It's your mom." "And ben." "And alexis is here." "With friends." "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." "[ both chuckle ]" "Wow, you guys." "Get a room." "We would, if there were any left!" "[ door closes ]" "Maybe you shouldn't have been so quick to sublet your place." "You know, maybe we can 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've 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." "Esposito:" "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 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." "[ dramatically ] 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 -- [ normal voice ] oh, right over here." "Excuse me." "Is this newton endeavors?" "Oh, 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 want to build a replica of jansen's mars colony?" "The competition." "Granger must have been breaking into the sim" "To steal technology for jansen's competitors." "[ british accent ] i don't care if we have to pay them triple." "We cannot fall any further behind." "And i think i know which one." "All right." "Yep." "Sir ian rasher." "Billionaire playboy adventurer." "And possible accessory to murder." "You may want to rethink your application to his program." "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 can 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." "[ chuckling ] 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 want to 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 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." "Esposito:" "Mikhail?" "Yes?" "I'd like a few words with you." "What about?" "Your business relationship with clint granger." "Hey, hey!" "[ groaning ]" "Come on, mikhail." "You're crazy!" "Bro, where you gonna run?" "You're on mars!" "Aah!" "[ groaning ]" "I hate to admit, but it's good to be out." "Go ahead." "What do they say?" "Fresh air, times square?" "[ chuckles ]" "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." "[ scoffs ] you americans." "A 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." "Mm, 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." "Ryan:" "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." "[ sighs ] 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." "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 have 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?" "I'll let you know soon." "In here." "[ air hisses ]" "There." "I've cut off communications with the rest of the habitat." "No one can hear us." "M.I.R.A.:" "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." "[ sighs ] 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?" "[ whirring ]" "She's drawing more power." "Something's wrong." "No." "The rover wasn't activated." "The rover was docked." "Is it possible someone could have 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" "A-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." "Right." "Right, okay." "Um..." "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 can find out pretty quickly what happened." "[ air hissing ]" "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 was harmful but it wouldn't kill us, right?" "Short term -- long term, it's deadly!" "We have to get out of here!" "[ coughs ]" "It's locked!" "Call for help!" "Communications are dead!" "M.I.R.A., open the door!" "Open the pod bay door!" "[ coughs ] [ straining ] i wanted to go to mars..." "Not die on mars." "[ all coughing ]" "Wait a minute." "We're not on [coughs] mars." "We're on earth." "[ beep ] [ ringing ] [ coughing ]" "Esposito:" "Hello?" "Beckett?" "Are you saying that the computer tried to kill you?" "Yeah, just like in "2001."" "Kubrick was right." "A.I. Is a bad idea." "M.I.R.A.'s not a.I." "Yes, she can learn and adapt, but she's a machine." "She cannot think for herself." "Then why'd she try to kill us?" "Redley:" "It wasn't m.I.R.A." "We just pulled apart the server." "Someone embedded a subroutine into the o.S. 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." "[ breathes deeply ]" "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." "Beckett:" "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, whom 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..." "I couldn't have planted the murder weapon" "In the tunnel." "No." "But dr." "Haroun and angela could have 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." "Kim:" "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?" "Uh, 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 want to go to mars?" "Oh, of course." "But i think i'm gonna wait till 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?" "Martha:" "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 " "And you and your new boyfriend doing late-night medleys." "I -- well, yeah, that." "So, i have decided " "And i don't want to 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 -- 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 " "And 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." "[ singsong voice ] so, don't wait up!" "Bye!" "[ door opens, closes ]" "I did not expect that." "The unexpected is her specialty." "It's so quiet." "It's really, really quiet." "Maybe we should go out." "Ooh, 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."