A simple JavaScript checkers game