Checkers game in JavaScript and HTML5