added checkMatches function, which works/can check and sets the flags to be true for icons matching horizontally for 3 or more tiles