Changing buttons menu

Hey everyone

I want to create a cool menu (on paper anyway :puzzle: ) but I don’t manage to create it properly.

I Want to create a menu with 5 buttons in it.

Button A = the back button
button B - Button E = are the selection button

I want that Button A takes the color of the button where the people clicked on e.g clicked on button B => Button B takes the color of button A and name of button A.

When I then click on Button D => Button D takes the color and name of button B …etc

is this possible? pleeease say Yes :red:

thx in advance
Tom