Grizzlies defeat Mavericks 99-90