Added chess logic hooks