(*Board).isIllegal(row, col, color) function and new constructor for *Board