Update DeepTankLogic.java

refactoring of method checkValidStructure as a solution for issue Toops#21