fixed minor bug in the discover function, this time I forget to set as discovered also the squares tested by the function and not only by the user