make mine-sweeper.js to be in a closure