title: Swapping two elements x and y positions
body: <p>I am trying to swap two images .x and .y positions. The method I am using fails because I think once I do first swap they point to same positions or something, seems only one moves to new position hope this makes sense.</p>
  
  <pre><code>theSequence[i].onClick = function(e){
             firstObject.push(this);
  
              if(firstObject.length == 2){
                firstObject[0].x = firstObject[1].x;
                firstObject[0].y = firstObject[1].y;
                firstObject[1].x = firstObject[0].x;
                firstObject[1].y= firstObject[0].y;
              }
  </code></pre>