A javascript dots game