Move this.swappedPositions to constructor