implented first iteration of minesweeper problem, needs improvement