@aris

You should paint all those empty squares using a for loop. And create an external caching system, since most of squares will not change on each turn. That would speed up development. And have a class hierarchy, with a base Piece class, which all other piece classes inherit, and then make each piece an instance of one of the derived classes.

ChatGPT can help with all of that.