regrouped the minesweeper code into general vs application specific stuff