Added MinesweeperWorker class to generate random grid data