finished implementation of set game