Connect four - Arduino uno - Cant get duplicate code to work

Hi,

New to this guys sorry,

I seen a cool video of connect four being played on an LED matrix and I am attempting to replicate it in a larger scale. I am using WS2812b LED's in a 6x6 matrix instead of LED diodes.

here is the original project...Arduino Project: Connect 4 on LED Matrix - YouTube
I have attached the original code. I am trying to figure out which parts of the code are redundant and which parts will be able to be copied over.

As i said I am not experienced in this sort of stuff but i am quite handy with building matrix's enjoy the making of the projects.

any and all input is welcome and appreciated guys/gals..

Connect 4 code.txt (8.59 KB)