making Hexgrid a library