Tic Tac Toe built in Javascript