Tic Tac Toe implemented in javascript using svg format for display