High-level algorithm used on this page:
- totalTiles = edgeSize * edgeSize
- Repeat until you have numberOfMines unique indices:
- Generate a random number from 0 (inclusive) to totalTiles (exclusive).
- If the returned index isn't already selected, add it to the mine set
- Once mines are determined, fill the rest of the board with gems