fix for checkStructure (toops#21 & toops#22)

Refactoring of method CheckValidStructure in both HighOven and DeepTank to fix the issue Toops#21 and Toops#22