I will not read your posted images, but I will tell you how to do Gaussian elimination (with pivoting).
(1) Bring the element with largest ##|a_{i1}|## into position (1,1) by swapping two rows if necessary.
(2) Zero out the (possibly new) elements ##a_{21}, a_{31}, \ldots, a_{n1}## by row operations.
(3) Now in the (new) rows ##2, \ldots, n##, swap two rows (if necessary) to bring the largest (new) ##a_{2,2}, a_{3,2}, \ldots, a_{n,2}## into position (2,2).
(4) Zero out the (new) elements ##a_{3,2}, \ldots, a_{n,2}## by row operations, etc.
Note that once you have pivoted in row ##i## (that is, zeroed out the elements below ##a_{ii}##), row ##i## is no longer involved in any more operations: no more interchanging row ##i## with some other row again, no more row operations involving the elements in column ##i##, etc.
I will look further at your work if you type it out, in accordance with PF standards.