Ann: First implementation of isValid. Board now compiles