Checkers logic code.