An analysis of two-dimensional water waves based on O (2)