Add the value of the position in the list with the index j+1 to the position with the index j.

That's the second part of the swap!

Make sure to add list[j] = list[j+1] to your code.