Wow. Obviously you should demand that he moves out immediately. If he doesn't, get the police or something involved. Shouldn't be a problem though, if both you and your friend agree, he has no say in the matter. That lunatic shouldn't be living with people.