Fixed board checkValid()