The Buffalo Bills beat the New England Patriots 35-31, keeping their hopes alive for a chance at the AFC East title.