finished the logic of 21 boxes