Move logictype into it's own header file
Fix regenerate bug
Moved findnewvertposition out of base class