Patriots finish strong and defeat Miami 23-16