Changed valid items to use contains() instead of an array of booleans