I'm having trouble creating my Arm Wrestling game using an Arduino, A Breadboard, 9 LEDs, 2 Pushbuttons, 9-200 Ohm Resistors, and two 1k Ohm Resistors for the pushbuttons. the first picture is an image of the first design of my project.
This is the final look of it for now but I cannot figure out how to code it properly to have a constant green LED on in the middle and when one button on either side is pressed, it goes +1 space in the opposite direction of that button itself. So the next image is how far I got with attempting to break down the project and do one side at a time. But only recently I had the idea of coding the LEDs like they're spaces on a board in a line which they are essentially, but the light moving 1 by 1 in two directions only left and right.
If anyone can help me figure how I can code the movement of light back and forth a line of LEDs by pressing one button that would send the light in the opposite direction by 1 LED, that would be greatly appreciated

