Fixed the detection for sevens to be more reliable. Added in a permutation algorithm that would test all possible permutations of mines on the field to see if only one would work, and it would do it. However, I changed this to simply adding another row on the matrix using all of the squares and all of the mines as values, which seems to serve the same purpose but it is faster for larger numbers of unknown squares.