If you haven't already found this, I think the game you are looking for is Shisen-Sho, also sometimes known as "Four Rivers". https://en.wikipedia.org/wiki/Shisen-Sho
Most implementations I have seen don't mask the covered tiles, which in theory allows for better strategy in choosing matches to avoid deadlock - realistically as I play it though I usually pick whatever match I see first anyway. :)