Updated the move message with a type of message

Also added equals method to matrix and updated tests