Fixing when mines are generated