The Labyrinth : Fixing the swap with X and Y in the array