Verify Minewsweeper - inefficient solution