solved minesweeper problem. one endl made all the diff