Simple JavaScript Tic Tac Toe game