It can be fixed, I know chess but a few rules I didn't know about while developing it. I spent 1 week on this project to test the capabilities of AI coding. I didn't want it to take up a ton of time. I will fix all the issues with it at some point in the not so distant future, adding castling as well.