C implementation of checkers