Matt wished to swap bodies with Mr. Desoto. Right at the moment Matt wasn't in his room.... He was sitting in a car. He was shocked. The face on the mirror was not of his own, but of Mr. Dosoto's.
And Mr. Desoto also get a shock. One second he was in his car, and the next second, he was in a room. Yes, he became Matt.