I don’t think I know enough about it to be much help, but I think you’re giving yourself a hard time by using enums. Because you have to always code them literally ( as you have above ).
Can you set it up so that you just know what position each number is in each array?