Yankees play long ball to beat Athletics 6-3