Brock Purdy threw for five TDs in a Monday Night shootout as the San Francisco 49ers beat the Indianapolis Colts to stay in the hunt for the NFC 1 seed.