Tic-tac-toe made using javascript and canvas api