Corrected the input from the advance function so that the returned vector is split up and saved into position and