Implemented constructor of Minesweeeper class with difficulty.