Implementation of block, mine and minefactory