Fixed mine distribution algorithm

Changed all instances of NULL to nullptr. Occasionally, there was an
error where extra mines would appear in the field so the number of mines
would exceed TOTAL_BOMBS.