fixed outOfBounds
starting diagonals for isValid