Tac Tac Toe game in Javascript