upgraded the updateTheMatrix method in prep for some cool effects