Added two getCoordinates functions, replaced C pointer by std::unique_ptr in hexagon