The dynamics of proton transfer in a water chain