provide mathmatical solving of 3d minesweeper