completed working version of minesweeper