partially converted to es6 syntax; pivot ship on double click