you could just use $istok
if (!$istok(rock paper scissors,$2,32)) {
or for the regex this will work
if (!$regex($2,/^(rock|paper|scissors)$/i)) {