this is what happens when an idiot tries to make chess (I gave up)
for the smart one https://scratch.mit.edu/projects/1295924866