Yes, it's sad to lose your best buddy, but that's the reality of professional sports. There are business decisions, players opting for money and/or comfort (not a criticism), which creates a lot of movement.
In short, Matthews and Andersen are both professional players, so they will be able to move on quickly to focus on their respective teams.