Source: https://studio.code.org/projects/gamelab/UVgyRh9fl6pwjGV9ddv9v03bYjdzgViuprP4M22KeeY/view
So... CDO doesn't really have a chess game yet, so i adapted some code,
figured out that it ran like garbage and had terrible graphics and search algorithms,
-> optimized all of it for gamelab
and now it's running decently, thing is that any type of algorithm I've tried seems to take seconds to calculate, is there a better way i haven't tried yet? otherwise it may be just better to not have that mechanism implemented at all and have an incomplete ruleset and leave it up to the users to play by the rules