refactoring coord calculation
implemented Hex