Constrain mine count to be at most the largest number of mines we can guarantee to fit into the grid! [originally from svn r5867]