refactor tanks, add xgui with template