Fixed the illegal moves it was spitting out