A basic tic-tac-toe game in javascript using HTML5 canvas