finished chess logic