Yankees get away with a terribly messy game