Josh Allen passed for three touchdowns and ran for two as the Buffalo Bills defeated the Miami Dolphins 42-17 on Sunday afternoon in Orchard Park, N.Y.Zay Jones caught two touchdowns from Allen, who completed 17 of 26 passes for 224 yards with an interception. Allen also ran nine times for 95 yards. Buffalo forced four turnovers and enjoyed its highest-scoring game of the season.The game was the season finale for two teams out of playoff contention. Buffalo (6-10) finished 4-3 in its final seven games. Miami (7-9) concluded its season on a three-game losing streak, dropping nine of its final 12.Despite little at stake, things got heated in the third quarter when Dolphins linebacker Kiko Alonso dove in an attempt to stop a sliding Allen. Alonso was ejected, as were Dolphins defensive end Robert Quinn and Bills offensive tackle Jordan Mills, who got into a brawl following the play.Sunday was emotional for another reason, as it was the final NFL game for five-time Pro Bowl defensive tackle Kyle Williams, who played his entire 13-year career in Buffalo. With four minutes left in the game, he was used as a fullback and made his first career reception, gaining 9 yards.Dolphins quarterback Ryan Tannehill, who is 0-5 in his career at Buffalo, completed 18 of 31 passes for 147 yards. He was sacked four times and intercepted twice.However, Tannehill, who entered college as a wide receiver, caught his first career touchdown pass on a second-quarter trick play.Buffalo scored touchdowns on its first two possessions — a 1-yard quarterback sneak by Allen and an 18-yard pass to Jones.The first TD was set up by Allen scrambling on third-and-16 before hitting Chris Ivory for a 46-yard gain to the Miami 1. The second score was set up by rookie middle linebacker Tremaine Edmunds, who dropped into coverage and made a left-handed interception of Tannehill, returning it to the Miami 18.