Change hexagon class prototype to array.