Your problem Bro is the bromo... in this case the methylamine did not attack the bromine well and part of it remained in the product,try to try a recrystallization in water-acetone to see if you can get rid of the bromine in this way, depending on the amount that there is, you can or not.
The colored powder is then heated to a large amount of acidic HCl and all the crap comes out, and then you get a brown liquid with mmc.
I get only like it