I have been trying to do this but I just can't figure out how. I'm thinking about putting all those 4 buttons components in an array and then change the position to the 0th index if it was last pressed and then moving all the buttons to their index+1.
Is there a more react like way to do this?