Fixing some bugs in adding mines to the minefield.