Android app - find three cards out of 12 that have equal or different attributes