add matches and cards functionality