Made GenerateAllPatterns which generates all the 3x3 patterns possible.