set checking now in separate function
finished brute-force solver for sets