Chess Checker Project

I’m designing this program in Python, not Javascript. I’ve written a program myself but I’m getting a few errors for it. For instance, for the diagonal program, I am getting the error ‘NoneType’ object has no attribute ‘getitem