inverting y-axis of puzzle