an implementation of the card game "set"