I would encourage my friend to confess because one; he can't sleep, probably because he's being haunted by doing the crime. two; so the person that was accidentally arrested can be free and my friend can face the consequences of his actions. If he doesn't confess, I'll take matter of my own hands and tell the police what he did. (I think he would admit first because he'll be overwhelmed if he doesn't.)