arduino uno, 8 lights with 5 buttons

old (1960ish?) complex electronics

No, early 1980s I would say.

So what is it? Which parts of functions are important to keep?