game logic fully functional for finding matches hiding non-mathces