Change getBoard to getRow and added patternsToTest and getPatterns method.