added populate mines function