Simple Tic Tac Toe game in JavaScript