https://allaboutreact.medium.com/movetobeginning-put-the-value-that-was-elimiated-into-the-first-position-of-the-array-3bbaea4f9fb1