set validity of used and unused tiles