Add square taken/invalid square logic