Minesweeper problem solved. Worked on the first run!

Also accepted on the first submit.
Test cases for 3n+1 problem added.