Created flood algorithm. Added markedMines variable.