agitates when filling/adds water after spin

The machine agitates before it fills and after last spin it fills with some water so cloths are very wet.

Hi.

In your case the problem is bad water sensing switch (first on the left).

The switch W10248240

Here are the breakdown diagrams and http://www.appliancepartspros.com/partsearch/model.aspx?model_id=5510239

Thank you. Post the results.

Simon.