changes x and y for hexagon