wrote clearforsearch mothod that resets the board