move functions out of closure in mine-sweep.js && add args to mine-game directive