Let us just focus on this..
Example:
Blues inputted by the user

Before:

Position Value Address
0 1 0022FEA0
1 2 0022FEA4
2 3 0022FEA8
3 4 0022FEAC

Please input an address: 0022FEA0
Please input the new value for the address inputted: 7


After

Position Value Address
0 7 0022FEA0
1 2 0022FEA4
2 3 0022FEA8
3 4 0022FEAC

Please input an address: