Tic tow - javascript game