Molecular dynamics simulation of liquid water between two walls