Add square validity check to board