you can use this small engine to create the grid at the start of the game. sorry, but I couldn't make the hexagons... (you can change the squares to hexagons)