A tic-tac-toe game using JavaScript and HTML5 canvas