A solution to popular Mine Sweeper Game