A Nintendo console is being credited with leading Alabama authorities to two men accused of robbing and killing a University of South Alabama economics professor.

Mobile County Assistant District Attorney Keith Blackwood said that the burglar who broke into Matthew Wiser's home on Nov. 20 stole a Nintendo Switch. After several weeks of investigating, police were finally able to track down suspect Tiquez Timmons by tracing the game system's online activity, Blackwood said.

ALABAMA BOY, 5, KILLED IN CROSSFIRE BETWEEN 2 WOMEN: 'WE'RE IN A STATE OF SHOCK'

Mobile Police Chief Lawrence Battiste said initially there wasn't much evidence to go on but praised the investigators who "were able to pick out the most minute of things" and act on that to break the case.

Timmons and Derric Scott, both 20, were arrested and charged with felony murder on Friday. They pleaded not guilty in a Mobile courtroom Wednesday morning.

ATHEIST GROUP TARGETS ALABAMA FOR 'USING TRAGEDY TO PROMOTE PRAYER'

Prosecutors believe Wiser's murder took place during a home invasion in West Mobile and that he was chosen at random.

"Timmons would drop off Scott to go burglarize houses and would pick him up and they would repeat the behavior somewhere else," Blackwood said in court. He added that the burglary was a pattern and claimed it was Scott who fired the shot that killed Wiser.

CLICK HERE FOR THE FOX NEWS APP

A preliminary hearing is scheduled for Jan. 16, 2020.