A Draughts (Checkers / Damas) game in pure Javascript