fixed chess logic basics