added hexagon flipping